<!--//页面包含的函数表-->
<!--//鼠标单击时网页匀速下移
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 checkall(){ 
	if ((document.search.searchtxt.value.length == 0) || (document.search.searchtxt.value == " ")) {
		alert("请填入搜索关键字!");
	} else {
		search.submit() ;
	}
	return false;
}

//菜单效果
function MM_preloadImages() { //v3.0
	var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
	var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
	if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
	if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
	document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
	else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_findObj(n, d) { //v4.01
	var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
	d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
	if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
	if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
	var i,p,v,obj,args=MM_showHideLayers.arguments;
	for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
	if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
	obj.visibility=v; }
}

function MM_swapImgRestore() { //v3.0
	var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_swapImage() { //v3.0
	var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
	if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_swapImgRestore() { //v3.0
	var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
	var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
	var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
	if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.0
	var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
	d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
	if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
	if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
	var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
	if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_showHideLayers() { //v6.0
	var i,p,v,obj,args=MM_showHideLayers.arguments;
	for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
	if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
	obj.visibility=v; }
}

//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.px_comp.value == "" || theForm.px_tel.value == "" || theForm.px_name.value == "" || theForm.px_bus.value == ""){
		alert("请填写你的单位名称！\n请填写的你的联系电话或手机！\n请填写你的姓名！\n请填写你的职务！");
		if (theForm.px_bus.value == ""){
			theForm.px_bus.focus();
		}
		if (theForm.px_name.value == ""){
			theForm.px_name.focus();
		}
		if (theForm.px_tel.value  == ""){
			theForm.px_tel.focus();
		}
		if (theForm.px_comp.value == ""){
			theForm.px_comp.focus();
		}
		return (false);
	}
}

//好书推荐
function checkinput_manage_book(theForm){
	if (theForm.b_name.value  == "" || theForm.b_bus.value == "" || theForm.b_tel.value == "" || theForm.b_add.value == "" || theForm.b_post.value == ""){
		alert("请填写你的姓名！\n请填写的你的职务！\n请填写你的联系电话或手机！\n请填写你的通信地址！\n请填写你的邮编！");
		if (theForm.b_post.value == ""){
			theForm.b_post.focus();
		}
		if (theForm.b_add.value == ""){
			theForm.b_add.focus();
		}
		if (theForm.b_tel.value == ""){
			theForm.b_tel.focus();
		}
		if (theForm.b_bus.value  == ""){
			theForm.b_bus.focus();
		}
		if (theForm.b_name.value == ""){
			theForm.b_name.focus();
		}
		return (false);
	}
	var intLength=theForm.b_fh.length;
	var intFlag=0;
	for (inti=0;inti<intLength;inti++){
		if (theForm.b_fh[inti].checked){
			strTpjl=theForm.b_fh[inti].value;
			intFlag=1;
		}
	}
	if (intFlag==0){
		alert("请选择运送方式！");
		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_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;
	}
}

//-->
document.writeln("<!--页面包含的函数表结束-->"); 
 
 
 
 
 
 
  
 
