function validate_search()
{
	f = document.searchForm;

	var is_empty = true;
	for (i = 0; i < f.strKeyword.value.length; i++)
	{
		if (f.strKeyword.value.charAt(i) != ' ')
		{
			is_empty = false;
			break;
		}
	}
	
	if (f.intDestination.selectedIndex == 0 &&
	    f.strDateFrom.selectedIndex == 0 &&
	    is_empty)
	{
		alert('Δεν έχετε δήλώσει κανένα κριτήριο αναζήτησης!');
	}
	else
	{
		f.submit();
	}
}
function show_destination( id )
{
	if (id > 0)
	{
		location = 'search.asp?intDestination='+id+'&strDateFrom=-&strKeyword=&page=0';
	}
}
function show_schedule( cruise_id, schedule_id )
{
	var iWidth	= 417;
	var iHeight	= 350;
	var iTop	= (screen.height-iHeight)/2;
	var iLeft	= (screen.width-iWidth)/2;
	var wndSchedule = window.open( 'schedule.asp?cruise_id='+cruise_id+'&schedule_id='+schedule_id, 'Schedule', 'top='+iTop+',width='+iWidth+',height='+iHeight+',left='+iLeft+',status=no,resizable=no,scrollbars=yes' );
	wndSchedule.focus();
}

function MM_openBrWindow(theURL, winName, features)
{
	window.open(theURL, winName, features);
}

function blnValidEmail(strInputString){
	var objRegExp = /(^[a-z0-9]+[a-z0-9_\-\.]*@[a-z0-9_\-]+\.[a-z0-9_\-\.]*[a-z0-9]+$)/gi
	
	if (objRegExp.test(strInputString)) {return true;} else {return false;}
}