//---页面跳转开始---
function jumpto(theURL){
	if (theURL == 0)		//酒店预订
	{
		//document.location = 'http://www.skyecho.com/cgishell/module/hotel/hotel_res.pl?Corp_ID=INC117';
		document.location = 'http://www.skyecho.com/cgishell/module/hotel/hotel_res.pl?Corp_ID=INC117';
	}
	else if (theURL == 1)	//国内机票
	{
		document.location = 'http://www.skyecho.com/cgishell/module/air/air_res.pl?Corp_ID=INC117&org=INC&via=CAN&dst=PEK&MODULE=INC117.htm';
	}
	else if (theURL == 2)	//会员注册
	{
		document.location = 'http://www.skyecho.com/cgishell/module/reg.pl?Corp_ID=INC117&cols=140&rows=25&MODULE=INC117_member.htm';
	}
	else if (theURL == 3)	//旅游线路
	{
		document.location = 'http://www.skyecho.com/cgishell/module/tour/tour_query.pl?Corp_ID=INC117&MODULE=INC117_tour.htm';
	}
	else if (theURL == 4)	// 国际机票
	{
		document.location = 'http://www.skyecho.com/cgishell/module/airinte/airinte_list.pl?Corp_ID=INC117&MODULE=INC117_inter.htm';
	}
	else if (theURL == 5)	// 火车票
	{
		document.location = 'http://www.skyecho.com/cgishell/module/train/train_time_list.pl?Corp_ID=INC117&MODULE=INC117_train.htm';
		//document.location = 'http://www.skyecho.com/cgishell/module/train/train_time_list.pl?Corp_ID=INC117&MODULE=INC117_train.htm';
	}
	else if (theURL == 6)	// 会员礼品
	{
		document.location = 'http://www.skyecho.com/cgishell/module/gift.pl?Corp_ID=INC117&MODULE=INC117_member.htm&Group_ID=0&width=650';
	}
}
//---页面跳转结束---

//---登录检测开始---
function Login(){
	login=document.frmLogin.User_ID.value;
	pwd=document.frmLogin.Password.value;
	if (login=="")  {
		alert("请填写您的用户名！");
		document.frmLogin.User_ID.focus();
		return false;
	}
	if (pwd=="")   {
		alert("请填写登录口令！");
		document.frmLogin.Password.focus();
		return false;
	}
}
//---登录检测结束---


//---登录检测开始---
function Login2(){
	login=document.frmLogin2.User_ID.value;
	pwd=document.frmLogin2.Password.value;
	if (login=="")  {
		alert("请填写您的用户名！");
		document.frmLogin2.User_ID.focus();
		return false;
	}
	if (pwd=="")   {
		alert("请填写登录口令！");
		document.frmLogin2.Password.focus();
		return false;
	}
}
//---登录检测结束---

function chgway(way) {
	var Returndate = document.getElementById("Return_date");
	if (way == 1) {
		Returndate.disabled = true;
	}
	else {
		Returndate.disabled = false;
	}
}
function setdv(formobj,v){
	for (i=0; i<formobj.length; i++){
		if (formobj.options[i].value==v) {
			formobj.selectedIndex = i;
			break;
		}
	}	
}

//设置当前时间
function setCurDate(formobj,after) {
	todayDate = new Date();
	date = todayDate.getDate() + after;
	month= todayDate.getMonth() + 1;
	year= todayDate.getYear();
	if(month < 10){
		month = "0" + month
	}
	if(date < 10){
		date = "0" + date
	}
	if(navigator.appName == "Netscape")
	{
		year = 1900+year;
		formobj.value = year + "." + month + "." +date;
	}
	if(navigator.appVersion.indexOf("MSIE") != -1)
	{
		formobj.value = year + "." + month + "." +date;
	}
}
