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 &&
	    f.intCompany.selectedIndex == 0)
	{
		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	= 600;
	var iHeight	= 400;
	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 show_boat( boat_id )
{
	var iWidth	= 600;
	var iHeight	= 400;
	var iTop	= (screen.height-iHeight)/2;
	var iLeft	= (screen.width-iWidth)/2;
	var wndSchedule = window.open( 'boat.asp?boat_id='+boat_id, 'Boat', 'top='+iTop+',width='+iWidth+',height='+iHeight+',left='+iLeft+',status=no,resizable=no,scrollbars=yes' );
	wndSchedule.focus();
}
