	function validate() {
		var starty=document.Form1.S_year.options[document.Form1.S_year.selectedIndex].value;
		var startm=document.Form1.S_month.options[document.Form1.S_month.selectedIndex].value;
		var startd=document.Form1.S_day.options[document.Form1.S_day.selectedIndex].value;
		var start_date=starty+'.'+startm+'.'+startd;
		var startcity=document.Form1.Depart.options[document.Form1.Depart.selectedIndex].value;	
		var endcity=document.Form1.Arrive.options[document.Form1.Arrive.selectedIndex].value;	
		
		if ((startm==4 || startm==6 || startm==9 || startm==11) && startd==31) {
			alert("您输入的起飞时间错误！");
			return;
		}
		if (startm==2 && startd>29) { 
			alert("您输入的起飞时间错误！");
			return;
		}
		if (startcity == endcity) {
			alert("始发地不能和目的地相同！");
			return;
		}
		document.Form1.Depart_date.value=start_date;
		document.Form1.submit();
	}

function loginit(){
	var flag,i,ext,chk,msg;
	flag = 0;
	msg="";
	if (document.Form_login.member_name.value == ""){
		window.alert("请输入用户账号。");
	}		
	else if (document.Form_login.password.value == ""){
		window.alert("请输入密码。");
	}
	else if ((!window.Form_login.member1.checked)&&(!window.Form_login.member2.checked)){
		window.alert("请选择注册类别 “个人” 或 “企业”");
	}
	else{
		document.Form_login.submit();
	}
}
function loginmember(){
	if(window.Form_login.member1.checked){
	   window.open ("/cgi-bin/papply.asp");
	}else if(window.Form_login.member2.checked){			
	   window.open ("/cgi-bin/capply.asp");
	}else{
	   window.alert("请选择注册类别 “个人” 或 “企业” ");
    }			
}

function Search_News()
{
	if (document.NewsSearch.News_keyword.value==""){
	alert("对不起，关键字不能为空！");
	NewsSearch.News_keyword.focus();
	return false;}
}
