function serover() {
aaa.style.backgroundImage='url(../images/searchover.jpg)';
aaa.style.color="#FF6600";
aaa.style.cursor='hand';
}
function serout() {
aaa.style.backgroundImage='url(../images/searchout.jpg)'
aaa.style.color="#FFFFFF"
}
function prnt () 
{
if (What())
{
 	new_window=window.open("","main","resizable, menubar, toolbar, location, directories=no, status, copyhistory=no, scrollbars");
	if (new_window != null) 
    	{ 
 		new_window.focus();
		new_window.location='../cgi-bin/timetbl.cgi?A='+f1.A.value+'&B='+f1.B.value;
		new_window.status = stat;
		new_window.print();
	 }
}
}
function What()
{
var aa=new Array()
var bb=new Array()
var i
var j
aa=f1.A.value.toUpperCase().split(" ")
bb=f1.B.value.toUpperCase().split(" ")
if (aa.length>1)
	{
	for (i=0; i<aa.length; i++)
	{
		if (aa[i] == "") 
		{
			alert ('Only one space between city names!')
			f1.A.value=""
			return false
		}
		for (j=i+1; j<aa.length; j++)
		{
			if (aa[i] == aa[j]) 
			{
				alert ('Enter different city names!')
				f1.A.value=""
				return false
			}
		}
	}
}
if (bb.length>1)
{
	for (i=0; i<bb.length; i++)
	{
		if (bb[i] == "") 
		{
			alert ('Only one space between city names!')
			f1.B.value=""
			return false
		}
		for (j=i+1; j<bb.length; j++) 
		{
			if (bb[i] == bb[j]) 
			{
				alert ('Enter different city names!')
				f1.B.value=""
				return false
			}
		}
	}
}
return true
}
