<!--//页面包含的函数表-->
<!--//鼠标单击时网页匀速下移

function reloadcode(){
	var verify=document.getElementById('safecode');
	verify.setAttribute('src','../include/sub_code.asp?'+Math.random());
	//这里必须加入随机数不然地址相同无法重新加载
}

function checkcode(){
	if (document.all.sub_code.value == ""){
		alert("请输入验证码！");
		document.all.sub_code.focus();
		return (false);
	}else{
		var strvar="";
		strvar=strvar+"<SubCode><![CDATA[" + document.all.sub_code.value + "]]></SubCode>"
		var sendXML = SendHttp("../include/sub_code_check.asp",strvar);
		//var aa=window.open("","","");
		//aa.document.write(sendXML);
		var objXML=new ActiveXObject("Microsoft.XMLDOM");
		objXML.async="false";
		objXML.loadXML("<root>"+sendXML+"</root>");
		var SubCheck=objXML.documentElement.childNodes.item(0).childNodes.item(0).text;
		document.all.sub_code_bak.value = objXML.documentElement.childNodes.item(0).childNodes.item(1).text;
		if (SubCheck=="1"){
			//输入验证码不正确
			alert("输入验证码不正确，请重新输入！");
			document.all.sub_code.focus();
			return (false);
		}
	}
}

var currentpos,timer;
function initialize(){
	timer=setInterval("scrollwindow()",1);
}

function sc(){clearInterval(timer);}

function scrollwindow(){
	currentpos=document.body.scrollTop; window.scroll(0,++currentpos);
	if (currentpos != document.body.scrollTop) sc();}

document.onmousedown=sc 
document.ondblclick=initialize 

//登录用户名和密码检测
function checkinput_login(theForm){
	if (theForm.manage.value == "" || theForm.password.value == ""){
		alert("请输入用户名和密码！");
		theForm.manage.focus();
		return (false);
	}
	if (checkcode()==false){
	  	return false;
	}
}

function FzjgHiddenShow()
{
	if(document.all.Layer3.style.display=="")
	{
		document.all.Layer3.style.display="none";
		document.all.Layer4.style.display="none";
	}
	else
	{
		document.all.Layer3.style.display="";
		document.all.Layer4.style.display="";
	}
}


//GO跳止某页程序
function JumpTo1(page1){
	iToPage=document.frmjump1.iCurPage.value
	if (iToPage==""){
		alert("请输入您要跳转到的页码！")
		frmjump1.iCurPage.focus();
		return false
	}
	if (isNaN(iToPage)){
		alert("必须输入数字！")
		frmjump1.iCurPage.focus();
		return false
	}
	if ((parseInt(page1)<parseInt(iToPage))||(parseInt(iToPage)<=0)){
		alert("没有第"+iToPage+"页！")
		frmjump1.iCurPage.focus();
		return false;
	}
	return true
}

//翻页
function topage(intpage){
	document.frmjump1.action=document.frmjump1.hid_FileName.value+".asp?iCurPage="
	//翻到首页
	if (intpage==0){
		document.frmjump1.action=document.frmjump1.action+parseInt(1);
		document.frmjump1.submit();
	}
	//翻到前一页
	if (intpage==1){
		document.frmjump1.action=document.frmjump1.action+(parseInt(document.frmjump1.hid_currentpage.value)-1);
		document.frmjump1.submit();
	}
	//翻到后一页
	if (intpage==2){
		document.frmjump1.action=document.frmjump1.action+(parseInt(document.frmjump1.hid_currentpage.value)+1);
		document.frmjump1.submit();
	}
	//翻到尾页
	if (intpage==3){
		document.frmjump1.action=document.frmjump1.action+(parseInt(document.frmjump1.hid_SumPage.value));
		document.frmjump1.submit();
	}
}

//培训班
function checkinput_manage_training(theForm){
	if (theForm.fd_lxr3.value == "" || theForm.fd_tel3.value == ""){
		alert("请您填写姓名、联系电话！");
		theForm.fd_lxr3.focus();
		return (false);
	}
//	if (theForm.fd_mail.value == "" || theForm.fd_mail.value.indexOf("@") == -1 || theForm.fd_mail.value.indexOf(".") == -1){
//		alert("请您填写联系人正确的E-mail地址！");
//		theForm.fd_mail.focus();
//		return (false);
//	}
}

//购买联系
function checkinput_purchase(theForm){
	if (theForm.p_type.value == "" || theForm.p_comp.value == "" || theForm.p_tel.value == ""){
		alert("请选择要购买的产品！\n请填写你的单位名称！\n请填写的你的联系电话或手机！");
		if (theForm.p_tel.value  == ""){
			theForm.p_tel.focus();
		}
		if (theForm.p_comp.value == ""){
			theForm.p_comp.focus();
		}
		if (theForm.p_type.value == ""){
			theForm.p_type.focus();
		}
		return (false);
	}
	if (theForm.p_name.value == "" || theForm.p_bus.value == "" || theForm.p_add.value == "" || theForm.p_post.value == ""){
		alert("请填写你的姓名！\n请填写你的职务！\n请填写你的通信地址和邮编！");
		if (theForm.p_post.value  == ""){
			theForm.p_post.focus();
		}
		if (theForm.p_add.value == ""){
			theForm.p_add.focus();
		}
		if (theForm.p_bus.value == ""){
			theForm.p_bus.focus();
		}
		if (theForm.p_name.value == ""){
			theForm.p_name.focus();
		}
		return (false);
	}
	if (theForm.p_mail.value == "" || theForm.p_mail.value.indexOf("@") == -1 || theForm.p_mail.value.indexOf(".") == -1){
		alert("请你输入正确的E-mail地址！");
		theForm.p_mail.focus();
		return (false);
	}
}

//在线留言时输入检测
function checkinput_msg(theForm){
	if (theForm.fd_name.value == "" || theForm.fd_tel.value == ""){
		alert("请告诉我们您的姓名和联系电话！");
		theForm.fd_name.focus();
		return (false);
	}
//	if (theForm.fd_mail.value == "" || theForm.fd_mail.value.indexOf("@") == -1 || theForm.fd_mail.value.indexOf(".") == -1){
//		alert("请您输入正确的E-mail地址！");
//		theForm.fd_mail.focus();
//		return (false);
//	}
	if (theForm.fd_memo.value == ""){
		alert("请您填写详细内容！");
		theForm.fd_memo.focus();
		return (false);
	}
	if (checkcode()==false){
	  	return false;
	}
}

//在线投稿时输入检测
function checkinput_contr(theForm){
	if (theForm.fd_title.value == "" || theForm.fd_memo.value == ""){
		alert("请填写您投稿的标题和内容！");
		theForm.fd_title.focus();
		return (false);
	}

	if (theForm.fd_name.value == "" || theForm.fd_tel.value == ""){
		alert("请告诉我们您的姓名和联系电话！");
		theForm.fd_name.focus();
		return (false);
	}
//	if (theForm.fd_mail.value == "" || theForm.fd_mail.value.indexOf("@") == -1 || theForm.fd_mail.value.indexOf(".") == -1){
//		alert("请您输入正确的E-mail地址！");
//		theForm.fd_mail.focus();
//		return (false);
//	}
}

//在线调查时输入检测
function checkinput_vote(theForm){
	if (theForm.V4_UserName.value == "" || theForm.V4_Phone.value == ""){
		alert("请告诉我们您的姓名和联系电话！");
		if (theForm.V4_Phone.value  == ""){
			theForm.V4_Phone.focus();
		}
		if (theForm.V4_UserName.value == ""){
			theForm.V4_UserName.focus();
		}
		return (false);
	}
//	if (theForm.V4_Mail.value == "" || theForm.V4_Mail.value.indexOf("@") == -1 || theForm.V4_Mail.value.indexOf(".") == -1){
//		alert("请您输入正确的E-mail地址！");
//		theForm.V4_Mail.focus();
//		return (false);
//	}
}

//在线填写认证申请时输入检测
function checkinput_rzsq(theForm){
	if (theForm.fd_company.value == "" || theForm.fd_lxr3.value == "" || theForm.fd_tel3.value == ""){
		alert("请您填写单位名称、联系人姓名、联系人电话！");
		theForm.fd_company.focus();
		return (false);
	}
//	if (theForm.fd_mail.value == "" || theForm.fd_mail.value.indexOf("@") == -1 || theForm.fd_mail.value.indexOf(".") == -1){
//		alert("请您填写联系人正确的E-mail地址！");
//		theForm.fd_mail.focus();
//		return (false);
//	}
}

//客户满意度输入检测
function checkinput_khmyd(theForm){
	if (theForm.company.value == "" || theForm.lianxr.value == "" || theForm.tel1.value == ""){
		alert("请告诉我们您的组织名称和管理者代表，以及联系电话！");
		theForm.tel1.focus();
		return (false);
	}
}

//信息变更输入检测
function checkinput_xxbg(theForm){
	if (theForm.company.value == "" || theForm.lianxr.value == "" || theForm.tel.value == ""){
		alert("请告诉我们您的组织名称和联系人，以及联系电话！");
		theForm.tel.focus();
		return (false);
	}
}

//在线评论时输入检测
function checkinput_pl(theForm){
	if (theForm.info_text.value == ""){
		alert("请输入您的评论信息！");
		theForm.info_text.focus();
		return (false);
	}
	if (checkcode()==false){
	  	return false;
	}
}

//信息反馈
function checkinput_feedback(theForm){
	if (theForm.f_type.value == "" || theForm.f_comp.value == "" || theForm.f_tel.value == ""){
		alert("请选择你要反馈关于哪部分的信息！\n请填写你的单位名称！\n请填写的你的联系电话或手机！");
		if (theForm.f_tel.value  == ""){
			theForm.f_tel.focus();
		}
		if (theForm.f_comp.value == ""){
			theForm.f_comp.focus();
		}
		if (theForm.f_type.value == ""){
			theForm.f_type.focus();
		}
		return (false);
	}
	if (theForm.f_name.value == "" || theForm.f_bus.value == "" || theForm.f_add.value == "" || theForm.f_post.value == ""){
		alert("请填写你的姓名！\n请填写你的职务！\n请填写你的通信地址和邮编！");
		if (theForm.f_post.value  == ""){
			theForm.f_post.focus();
		}
		if (theForm.f_add.value == ""){
			theForm.f_add.focus();
		}
		if (theForm.f_bus.value == ""){
			theForm.f_bus.focus();
		}
		if (theForm.f_name.value == ""){
			theForm.f_name.focus();
		}
		return (false);
	}
	if (theForm.f_mail.value == "" || theForm.f_mail.value.indexOf("@") == -1 || theForm.f_mail.value.indexOf(".") == -1){
		alert("请你输入正确的E-mail地址！");
		theForm.f_mail.focus();
		return (false);
	}
}

//合作加盟
function checkinput_join_in(theForm){
	if (theForm.a_type.value == "" || theForm.a_comp.value == "" || theForm.a_tel.value == ""){
		alert("请选择合作形式！\n请填写你的单位名称！\n请填写的你的联系电话或手机！");
		if (theForm.a_tel.value  == ""){
			theForm.a_tel.focus();
		}
		if (theForm.a_comp.value == ""){
			theForm.a_comp.focus();
		}
		if (theForm.a_type.value == ""){
			theForm.a_type.focus();
		}
		return (false);
	}
	if (theForm.a_name.value == "" || theForm.a_bus.value == "" || theForm.a_add.value == "" || theForm.a_post.value == ""){
		alert("请填写联系人姓名！\n请填写联系人职务！\n请填写你的单位通信地址和邮编！");
		if (theForm.a_post.value  == ""){
			theForm.a_post.focus();
		}
		if (theForm.a_add.value == ""){
			theForm.a_add.focus();
		}
		if (theForm.a_bus.value == ""){
			theForm.a_bus.focus();
		}
		if (theForm.a_name.value == ""){
			theForm.a_name.focus();
		}
		return (false);
	}
	if (theForm.a_mail.value == "" || theForm.a_mail.value.indexOf("@") == -1 || theForm.a_mail.value.indexOf(".") == -1){
		alert("请你输入正确的E-mail地址！");
		theForm.a_mail.focus();
		return (false);
	}
	if (theForm.a_jj.value == "" || theForm.a_gm.value == "" || theForm.a_yw.value == "" || theForm.a_qy.value == ""){
		alert("请填写公司简介！\n请填写公司规模与营业额！\n请填写公司相关业务能力！\n请填写公司核心业务区域！");
		if (theForm.a_qy.value  == ""){
			theForm.a_qy.focus();
		}
		if (theForm.a_yw.value == ""){
			theForm.a_yw.focus();
		}
		if (theForm.a_gm.value == ""){
			theForm.a_gm.focus();
		}
		if (theForm.a_jj.value == ""){
			theForm.a_jj.focus();
		}
		return (false);
	}
}

//分类选择时刷新页面
function MM_jumpMenu(targ,selObj,restore){ //v3.0
	//eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
	eval("window.open('"+selObj.options[selObj.selectedIndex].value+"')");
	if (restore) selObj.selectedIndex=0;
}

//分类选择时刷新页面2
function MM_jumpMenuP(targ,selObj,restore){ //v3.0
	eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
	if (restore) selObj.selectedIndex=0;
}

function jhqy_land(inti){
	if ((document.all.txt_123.value=="") || (document.all.txt_321.value=="")){
		alert("请您输入用户名和密码！");
		return false;   
	}
	else{
		switch (inti){
		case 1:
			window.open("","pxbioa_Login","width=" + screen.width + ",height=" + screen.height + ",left=0,top=0");
			document.fr_search.target="pxbioa_Login";
			document.fr_search.submit();
			break;
		}
	}
}

function keyDown(obj){
	if(event.keyCode==13){
		if(obj.id=="txt_123")
			document.all.txt_321.focus();
		else{
			if(obj.id=="txt_321"||obj.id=="Image2") jhqy_land(1);
		}
		window.event.returnValue = false;
	}
	if(event.keyCode==9){
		if(obj.id=="txt_123") document.all.txt_321.focus();
		else{
			if(obj.id=="txt_321"){
				return true;
			}
			else{
				if(obj.id=="Image2") document.all.txt_123.focus();
			}
		}
		window.event.returnValue = false;
	}
}

var intShowFlag=1;
var tempValue;
function search_qyml(strJudge){
	if (strJudge == "zcbh"){
		t11.style.display='block';
		t12.style.display='block';
		t13.style.display='block';
		t21.style.display='none';
		t22.style.display='none';
		t23.style.display='none';
	}else{
		t11.style.display='none';
		t12.style.display='none';
		t13.style.display='none';
		t21.style.display='block';
		t22.style.display='block';
		t23.style.display='block';
	}
/*
	intShowFlag=intShowFlag+1;
	if (intShowFlag%2==0){
		t1.style.display='block';
		t2.style.display='none';
	}
	else{
		t1.style.display='none';
		t2.style.display='block';
	}
*/
}

//打开调查结果页面
function MM_showModeWin(str_ID,str_Width,str_Height)
{
	var strTop = (window.screen.height - str_Height)/2;
	var strLeft = (window.screen.width - str_Width)/2;
	var OpenZck = window.open("../msg/vote_total.asp?id=" + str_ID + "","","height=" + str_Height + ",width=" + str_Width + ",top=" + strTop + ",left=" + strLeft + ",toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no");
}

function initAd() {
document.all.AdLayer.style.posTop = -200;
//设置onLoad事件激发以后，层相对于固定后的y方向位置
document.all.AdLayer.style.visibility = 'visible'//设置层为可见
MoveLayer('AdLayer');//调用函数MoveLayer()
}
function MoveLayer(layerName) {
var x = 0;//浮动层固定于浏览器的x方向位置
var y = 222;//浮动层固定于浏览器的y方向位置
var diff = (document.body.scrollTop + y - document.all.AdLayer.style.posTop)*.40;
var y = document.body.scrollTop + y - diff;
eval("document.all." + layerName + ".style.posTop = y");
eval("document.all." + layerName + ".style.posright = x");//移动层
setTimeout("MoveLayer('AdLayer');", 0);//设置20毫秒后再调用函数MoveLayer()
}

function initJJR() {
document.all.Layer2.style.posTop = -200;
//设置onLoad事件激发以后，层相对于固定后的y方向位置
document.all.Layer2.style.visibility = 'visible'//设置层为可见
MoveLayer2('Layer2');//调用函数MoveLayer2()
}
function MoveLayer2(layerName2) {
var x = 0;//浮动层固定于浏览器的x方向位置
var y = 80;//浮动层固定于浏览器的y方向位置
var diff = (document.body.scrollTop + y - document.all.Layer2.style.posTop)*.40;
var y = document.body.scrollTop + y - diff;
eval("document.all." + layerName2 + ".style.posTop = y");
eval("document.all." + layerName2 + ".style.posright = x");//移动层
setTimeout("MoveLayer2('Layer2');", 0);//设置20毫秒后再调用函数MoveLayer2()
}

//-->
document.writeln("<!--页面包含的函数表结束-->");
