function blc(s)
{
d=top.window.document.getElementById(s);
e=top.window.document;
d.style.display=(e.getElementById("chb").checked)?"block":"none";
}

function CheckForm1(sf)
{

if (document.web.arr.value == "EMP") 
{
alert("Выберите город прилета");
return;
}
a='http://www.e-ticket.aero/cgi-bin/intermedxg.pl/';
 if(sf) a+='shfar';
 else a+='date';
document.web.action=a;
document.web.submit();
}


function wr(selcity, names){
document.write('<select name='+names+' style="width:160px; ">');
for(i=0;i<city.length;) {	// city.js
	document.write('<option value="'+city[i]+'"');
	if(city[i]==selcity) document.write(' selected');
	i++;
	if(city[i]=='s') document.write(' style="color:#FF6600"');
	document.write('>');
	i++;
	document.write(city[i++]);
}
document.write('</'+'select>');
}


function wrg(selcity, names){
document.write('<select name='+names+' style="width:160px; ">');
for(i=0;i<gcity.length;) {	// city.js
	document.write('<option value="'+gcity[i]+'"');
	if(gcity[i]==selcity) document.write(' selected');
	i++;
	if(gcity[i]=='s') document.write(' style="color:#FF6600"');
	document.write('>');
	i++;
	document.write(gcity[i++]);
}
document.write('</'+'select>');
}



//Переключение ссылок на разные карты



function dayselection(){
today = new Date();
d=today.getDate();
m=today.getMonth();
document.web.outdate.selectedIndex=d-1;
document.web.outmonth.selectedIndex=m;
document.web.indate.selectedIndex=d-1;
document.web.inmonth.selectedIndex=m;
}


function gmap(napr, patch)
{
 allcity=window.open(patch+".php?route="+napr, "maparrdep", "left=0,top=0,width=740,height=540,resizable=0,scrollbars=1,status=1");
}

function nw(t){
 newWindow=window.open("calown.htm","cal"+t,"width=355,height=250,resizable=0,scrollbars=0");
 void(0)
}