function newwin(url) 
{
	var wth=window.screen.width; 
	var hth=window.screen.heigth;
	var lefth;
	var topth;
	if(wth==1024)  
	{
		hth=400;
		lefth =147;
		wth=780;
		topth=44;
	}
	else if(wth==800)
	{
		hth=300;
		lefth =35;
		wth=700;
		topth=10;
	}
	else
	{
	hth=600;
	wth=700;
	}
	var oth="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,left="+lefth+",top="+topth;
	oth = oth+",width="+wth+",height="+hth ;
	var newwin=window.open(url,"newwin",oth);
	newwin.focus();
	return false;
}
function check_on()
{
	if (document.form1.chengjiren_name.value=="" || document.form1.chengkeleixi.value=="")
	{
		div1.style.display=""
		div2.style.display=""
			return  false
	}
	else
	{
			form1.submit();
			return true
	}
}
function check_id()
{
	if (document.form2.chengjiren_name.value=="" || document.form2.chengkeleixi.value=="")
	{
		div3.style.display=""
		div4.style.display=""
		return  false
	}
	else
	{
		form2.submit();
		return true
	}
}
function In_check()
{
	sform.submit();
}	
function check_ip()
{
	div6.style.display=""
	div_qpadd.style.display=""
	div7.style.display="none"
	div_zfb.style.display="none"
}
function check_ip2()
{
	div_qpadd.style.display="none"
	div6.style.display="none"
	div7.style.display=""
	div_zfb.style.display="none"
}
function check_ip3()
{
	div_qpadd.style.display="none"
	div6.style.display="none"
	div7.style.display="none"
	div_zfb.style.display="none"
}
function check_ip4()
{
	div_qpadd.style.display="none"
	div6.style.display="none"
	div7.style.display="none"
	div_zfb.style.display=""
}
function check_OT(){
	if(document.sform.songjipiao_date.value=="")
	{
		alert("请您填写送票日期");
		return  false
	}
	else
	{
		sform.submit();
		return  true
	}
}
function jumpsearch()
{
	document.location.href="index.asp?action=cancel"
}
//非会员订票检测脚本
function FrameAutoResize()
{
	try
	{
		document.all["nr"].style.height=nr.document.body.scrollHeight
		document.all["foot"].style.height=foot.document.body.scrollHeight
	}
	catch(e){}
}
function orderSubmit()
{
	var form = document.search_id;
	if(form.search_name.value=="")
	{
		alert("请输入购票人的姓名");
		form.search_name.focus();
		return
	}
	if(form.search_pho3.value=="")
	{
		alert("请输入购票人的联系电话!");
		form.search_pho3.focus();
		return
	}
	if(form.search_Date.value=="")
	{
		alert("送票日期不能为空!");
		form.search_Date.focus();
		return
	}
	search_id.submit();
	return
}