	function goplane(){
		document.formplane.action=document.formplane.d_plane.options[document.formplane.d_plane.selectedIndex].value;
		document.formplane.submit();
	}
	function goactiontktrec(w,h){
		var actionstr = "";
			if (document.airtkt.idno.value!=""){
				document.formbookrecord.idno.value = document.airtkt.idno.value ;
				document.formbookrecord.submit();
			}
			else{alert("请填写编号！！");}
	}
	function windowOpen(ply,t,w,h){
		var ctlstr = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=" + w + ",height=" + h;
		  controlWindow=window.open(ply,t,ctlstr);
	}  
	function updatex(actionstr,t,w,h){
		windowOpen1(actionstr,t,w,h);
	}
	function windowOpen1(ply,t,w,h){
		var ctlstr = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=" + w + ",height=" + h; 
		  controlWindow=window.open(ply,t,ctlstr);
	}
	function initcity1(formobj){
		setdv(formobj.origin,"PEK");
		setdv(formobj.dest,"CAN");
	}
	
	function goactionother(gourl,gocgi){
		document.bookother.h_callnexturl.value = gourl;
		document.bookother.h_callnextcgi.value = gocgi;
		document.bookother.submit();
	}
	function goactionhotel(actionstr){
		document.formhotel.action = actionstr;
		document.formhotel.submit();
	}
	function gjhbcx(){ 	
        fobj=document.formgj;
        var strwhere="";
        if(fobj.dep_loc.value == ""  ||  fobj.arr_loc.value == ""){
        	alert("起飞地/到达地输入错误，请核对！！");
        	return false;
        }
        if(fobj.dep_loc.value == fobj.arr_loc.value){
        	alert("起飞地/到达地输入错误，请核对！！");
        	return false;
        }
        if( fobj.dep_loc.value != ""){
        	fobj.flag.value = "1";
        	fobj.servleturl.value = "/gb/hbcx/gj_hbcx2.jsp";
        	fobj.where1.value = "upper(apt_code) || '*' || upper(city_code) || '*' || upper(apt_name) || '*' || upper(ctry_name) like '%' || '" + fobj.dep_loc.value.toUpperCase() +"' || '%' ";
        	fobj.where2.value = "upper(apt_code) || '*' || upper(city_code) || '*' || upper(apt_name) || '*' || upper(ctry_name) like '%' || '" + fobj.arr_loc.value.toUpperCase() +"'  || '%' ";
        }   	
        fobj.StartRow.value = "0"; 
        fobj.where.value = strwhere;
        return true 
	} 

		function checkApt(fobj){ 	
		        if(fobj.apt.value == ""){
		        	alert("起飞地/到达地输入错误，请核对！！");
		        	return false;
		        }
		        return true 
		} 


		function hideselect(){
			document.formbook.airline.style.visibility="hidden";
		}
		
		function showselect(){
			document.formbook.airline.style.visibility="visible";
		}


function goaction1(){
	username = document.denglu.username.value;
	password = document.denglu.pass.value;	
	if(username==""){
		alert("用户名不能为空！");	
		return false;
	}
	else if(password==""){
		alert("密码不能为空！");	
		return false;	
	}
	document.denglu.action="/travelsky/uidsignon.do";
	document.denglu.submit();		
//	windowOpen('/travelsky/html/uidmk/regruler.htm','newusr','600','400');
	return true;
}
function goactionlogin(){
	username = document.denglu.username.value;
	password = document.denglu.pass.value;	
	if(username==""){
		alert("用户名不能为空！");	
		return false;
	}
	else if(password==""){
		alert("密码不能为空！");	
		return false;	
	}
	return true;
}

function windowOpen(ply,t,w,h){
var ctlstr = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=" + w + ",height=" + h;
  controlWindow=window.open(ply,t,ctlstr);
}  

function onRegLoadOK(){	
	window.print();
	windowOpen('/travelsky/html/uidmk/userpage.htm','newusr','460','479');
}
function onRegLoadFail(){
	windowOpen('/travelsky/html/uidmk/loginerr.htm','newusr','350','280');
}



function onEnterGo(oEvent){
	if(oEvent.keyCode==13){
		goaction1();
	}
}

