<!--
		
function Link(num)
{ 
	switch (num)
	{
		case 01: document.location.href="/index/index.asp";
		break;
		case 02: document.location.href="/contact/contact.asp";
		break;
		case 03: document.location.href="/";
		break;
		case 04: document.location.href="/index/blank.asp";
		break;
		case 05: document.location.href="/index/blank.asp";
		break;

		//关于我们 页面跳转
		case 11: document.location.href="/index/about.asp";  // 集团简介
		break;
		case 12: document.location.href="/index/keji.asp"; // 巨精科技
		break;
		case 13: document.location.href="/index/yier.asp"; 
		break;
		case 14: document.location.href="/index/tangchi.asp"; // 汤池温泉
		break;
		case 15: document.location.href="/index/zhici.asp"; // 董事长致词
		break;
		case 16: document.location.href="/index/hxtd.asp"; //核心团队// 
		break;
		case 17: document.location.href="/index/zzjg.asp"; // 组织结构
		break;
		case 18: document.location.href="/index/fzls.asp"; // 发展历史
		break;		
		case 19: document.location.href="/index/zltx.asp"; // 质量体系
		break;
		

		//新闻中心---------------------------------------------------------
		case 20: document.location.href="/index/xwzx.asp";
		break;		
		case 21: document.location.href="/index/xwzx.asp?newstype=集团新闻"; //集团新闻
		break;				
		case 22: document.location.href="/index/xwzx.asp?newstype=行业新闻"; // 
		break;		
		case 23: document.location.href="/index/xwzx.asp?newstype=巨精之声"; // 
		break;
		case 24: document.location.href="/index/xwzx.asp?newstype=企业文化"; // 
		break;
		
		
		//
		case 31: document.location.href="/index/cpxx.asp"; //主导产品
		break;
		case 32: document.location.href="/index/cpxx.asp?stype=all"; // 常规工具
		break;
		case 33: document.location.href="/index/cpxx.asp?stype=all"; // 带电作业
		break;
		case 34: document.location.href="/index/cpxx.asp?stype=all"; //仪器仪表
		break;
		case 35: document.location.href="/index/cpxx.asp?stype=all"; // 推荐产品
		break;
		case 36: document.location.href="/index/cpxx.asp?stype=all"; //新品信息
		break;

		//
		case 41: document.location.href="/index/lxwm.asp"; //联系我们
		break;
		case 42: document.location.href="/index/jszc.asp"; // 技术支持
		break;
		case 43: document.location.href="/index/mszj.asp"; 
		break;
				
		// 人力资源--------------------------------------------------------------------------------
		case 44: document.location.href="/index/rczl.asp"; //
		break;
		case 45: document.location.href="/index/rczl.asp"; //人才战略
		break;
		case 46: document.location.href="/index/zpxx.asp"; //招聘信息
		break;
		case 47: document.location.href="/index/mszj.asp"; //毛遂自荐
		break;
		case 48: document.location.href="/index/mszj.asp"; //修改简历
		break;

		// 举报与建议--------------------------------------------------------------------------------
		case 144: document.location.href="/index/jcjb.asp"; //
		break;
		case 145: document.location.href="/index/jcjb.asp"; //网上举报
		break;
		case 146: document.location.href="/index/jianyi.asp"; //网上建议
		break;
		
		
		// 后台管理------------------------------------------------------------------------------------------
		case 69: document.location.href="/index/admin/adminindex.asp?typename=pass"; //新闻管理
		break;
		case 70: document.location.href="/index/admin/adminindex.asp?typename=news"; //新闻管理
		break;
		case 71: document.location.href="/index/admin/adminindex.asp?typename=product";//产品信息
		break;
		case 72: document.location.href="/index/admin/adminindex.asp?typename=culture";//企业文化
		break;
		case 73: document.location.href="/index/admin/adminindex.asp?typename=human";//人力资源
		break;
                
                case 731: document.location.href="/index/admin/adminindex.asp?typename=jbjy"; //举报建议
		break;
		
		//产品信息---------------------------------------------------------------------------------
		
		case 74: document.location.href="/index/cpxx.asp?stype=新品信息";//新品信息
		break;
		case 75: document.location.href="/index/cpxx.asp?stype=常规工具";//常规工具
		break;
		case 76: document.location.href="/index/cpxx.asp?stype=带电作业";//带电作业
		break;
		case 77: document.location.href="/index/cpxx.asp?stype=仪器仪表";//仪器仪表
		break;	
		

		//营销网络------------------------------------------------------------------------------------------
		case 78: document.location.href="/index/yxwl.asp?78";//营销网络
		break;
		case 79: document.location.href="/index/yxwl.asp?79";//营销网络
		break;
		case 80: document.location.href="/index/yxwl.asp?80";//营销网络
		break;
		case 81: document.location.href="/index/yxwl.asp?81";//营销网络
		break;
		case 82: document.location.href="/index/yxwl.asp?82";//营销网络
		break;
		case 83: document.location.href="/index/yxwl.asp?83";//营销网络
		break;
		case 84: document.location.href="/index/yxwl.asp?84";//营销网络
		break;		
		case 85: document.location.href="/index/qywh.asp";//企业文化
		break;
		case 90: document.location.href="/index/qywh.asp?searchtype=员工天地";//企业文化
		break;
		case 91: document.location.href="/index/qywh.asp?searchtype=企业活动";//企业文化
		break;
		case 92: document.location.href="/index/qywh.asp?searchtype=社会活动";//企业文化
		break;
		
		}
	}

		
function Link_e(num)
{ 
	switch (num)
	{
		case 01: document.location.href="/index/blank.asp";// home
		break;
		case 02: document.location.href="/contact/e_contact.asp";// contact us
		break;
		case 03: document.location.href="/";// 
		break;
		case 04: document.location.href="/";// 
		break;
		case 05: document.location.href="/e_sitemap.asp";// 
		break;
		}
	}

////   
	function nation(val)
	{
		window.status=val;
		
		switch (val)
		{
			case "1": document.frames['nationFrame'].location.href ="/lib/international.asp?SrchWord=骇扁俊";// 
			break;			
		}
	}



	///////////
	function nationEng(val)
	{
		window.status=val;
		
		switch (val)
		{
			case "1": document.frames['nationFrame'].location.href ="/lib/e_internationalList.asp?SrchWord=Belgium";// 
			break;
			
		}
	}
///////////////////////////////////////////////// 康巩 傅农 矫累 ////////////////////////////////////////////////////		


/********************** 胶农费皋春 矫累 **********************/
var stmnLEFT = 962; //  
var stmnGAP1 = 350; //   
var stmnGAP2 = 400; //    
var stmnBASE = 500; //   
var stmnActivateSpeed = 100; //   
var stmnScrollSpeed = 8; // 

function RefreshStaticMenu()
{
		var stmnStartPoint, stmnEndPoint, stmnRefreshTimer;

		 stmnStartPoint = parseInt(FloatMenu.style.top, 10);
		 stmnEndPoint = document.body.scrollTop + stmnGAP2;
			
		if (stmnEndPoint < stmnGAP1) stmnEndPoint = stmnGAP1;

		if ( stmnStartPoint != stmnEndPoint ) {
				stmnScrollAmount = Math.ceil( Math.abs( stmnEndPoint - stmnStartPoint ) / 15 );
				FloatMenu.style.top = parseInt(FloatMenu.style.top, 10) + ( ( stmnEndPoint<stmnStartPoint ) ? -stmnScrollAmount : stmnScrollAmount );
				stmnRefreshTimer = stmnScrollSpeed;
		}
								 else {
				stmnRefreshTimer = stmnActivateSpeed;
		}

		setTimeout ("RefreshStaticMenu();", stmnRefreshTimer);
}

function InitializeFloatMenu()
{
		FloatMenu.style.top = document.body.scrollTop + stmnBASE;
		RefreshStaticMenu();
		FloatMenu.style.left = stmnLEFT;
}

function magazine(val)
{
	window.status=val;
	var curObj;
	
	curObj = eval("document.all._"+val);
	document.all.sample.innerHTML = curObj.innerHTML;
	
}

function openWin(filename,p_width,p_height,scrll)
{
	
	var filename,p_width,p_height,scrll,search,winLeft,winTop	
	var winLeft = (screen.width - p_width) / 2; 
	var winTop = (screen.height - p_height) / 2; 

	win = window.open(filename, "","resizable=no,scrollbars="+scrll+",width="+p_width+",height="+p_height+",left="+winLeft+",top="+winTop);
}

function jumpMenu(targ,selObj,restore){ 
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}



//扁夯 焊救 包访
/**/
document.oncontextmenu=function(){return false;}
document.ondragstart=function(){return false;}
document.onselectstart=function(){return false;} 
document.onmousedown=click
document.onkeydown=click
function click() {
	if ((event.button==2) || (event.button==3) || (event.keyCode == 93)) {
		return false;
	}
	else {
		if((event.ctrlKey) && (event.keyCode == 67)) {
			return false;
		}
	}
}



//状态栏 欢迎信息－－－－－
window.defaultStatus='Welcome to Jujing Electric & Mechanical ';
document.onmouseover=hidestatus ;
document.onmouseout=hidestatus ;
function hidestatus(){ 
	window.status='Welcome to Jujing Electric & Mechanical';
	return true;
}





//-----------------------捞固瘤 荤捞令 备窍扁--------------------------------//
function upload_img_resize(target_img,str,imgsize) 
{ 
var newX; 
var newY; 
var newHeight; 
var newWidth; 
if (imgsize < 100){
	var maxWidth = 800;
	var maxHeight = 600;
}else{
	var maxWidth = imgsize;
	var maxHeight = imgsize*0.75;
}

var newImg = new Image(); 
newImg.src = target_img.src; 

imgw = newImg.width; 
imgh = newImg.height; 

if (imgw > maxWidth || imgh > maxHeight) { 
	if (imgw > imgh) { 
		if (imgw > maxWidth) 
			newWidth = maxWidth; 
		else 
			newWidth = imgw; 
			newHeight = Math.round((imgh * newWidth) / imgw); 
	} else { 
		if (imgh > maxHeight) 
			newHeight = maxHeight; 
		else 
			newHeight = imgh; 
			newWidth = Math.round((imgw * newHeight) / imgh); 
		} 
}else { 
	newWidth = imgw; 
	newHeight = imgh; 
} 

newWidth = newWidth.toFixed(0)
newHeight = newHeight.toFixed(0)

newX = maxWidth / 2 - newWidth / 2; 
newY = maxHeight / 2 - newHeight / 2; 
target_img.onload = null; 
target_img.src = newImg.src; 
target_img.width = newWidth; 
target_img.height = newHeight; 
} 




function imgView(obj, w, h) {

 var mm = window.open("", 'imgview', 'width=' + w + ', height=' + h + ', top=135, left=135');
 var doc = mm.document;
 
 doc.body.style.margin = 0;
 doc.body.style.cursor = "hand";
 var previewimg = doc.createElement("img");
// previewimg.src = obj.src;
 previewimg.src = obj;
 doc.body.appendChild(previewimg);
 doc.title = "犬措捞固瘤";
 doc.body.onmousedown = function() {
  mm.close();
 }
}




//荤诀角利 八祸
function checkSearchWord()
{	
		chkForm=document.sendForm
					
	
		if (chkForm.SrchWord.value == "")
		{
				alert("该内容不能为空");
				chkForm.SrchWord.focus();
				return;
		}
		chkForm.submit();		
}

// 
function checkSearchWord_Eng()
{	
		chkForm=document.sendForm
					
	
		if (chkForm.SrchWord.value == "")
		{
				alert(" Must Input Text");
				chkForm.SrchWord.focus();
				return;
		}
		chkForm.submit();		
}




//
function checkSearchWordAll()
{	
		chkForm=document.sendSrchAllForm
					
	
		if (chkForm.SrchWord.value == "")
		{
				alert("Must Input Text");
				chkForm.SrchWord.focus();
				return;
		}
		chkForm.submit();		
}


// 
function checkSearchWordAll1()
{	
		chkForm=document.sendSrchAllForm
					
	
		if (chkForm.SrchWord.value == "")
		{
				alert("请输入产品名称");
				chkForm.SrchWord.focus();
				return false;
		}
		
	
		//if (chkForm.searchtype.value == "1")
		//{
				chkForm.action="/index/cpxx_s.asp"
				chkForm.submit();	
		//}
		//else
		//{
		//		chkForm.action="/index/cpxx_s.asp"
		//		chkForm.submit();	
		//}
			
}
//
function checkSearchWordAll_Eng()
{	
		chkForm=document.sendSrchAllForm
					
	
		if (chkForm.SrchWord.value == "")
		{
				alert("Must Input Text");
				chkForm.SrchWord.focus();
				return;
		}
		chkForm.submit();		
}

// 
function checkSearchWordAll_Eng1()
{	
		chkForm=document.sendSrchAllForm
					
	
		if (chkForm.SrchWord.value == "")
		{
				alert("Input Keyword");
				chkForm.SrchWord.focus();
				return false;
		}

		if (chkForm.pageGo.value == "1")
		{
				chkForm.action="/e_search_result.asp"
				chkForm.submit();	
		}
		else
		{
				chkForm.action="/e_business/totalSearchPage.asp"
				chkForm.submit();	
		}	
}

//
function	 sendSrchForm(boardId)
{		
	
	getForm = document.sendForm	
	
	if(boardId == "")
	{
			getForm.action = "totalSearchPage.asp?boardId="+boardId
			getForm.submit()
	}
	else
	{
			getForm.action = "biz_actual.asp?boardId="+boardId
			getForm.submit()
	}

}

//  
function	 sendSrchFormEng(boardId)
{		
	
	getForm = document.sendForm	
	
	if(boardId == "")
	{
			getForm.action = "totalSearchPage.asp?boardId="+boardId
			getForm.submit()
	}
	else
	{
			getForm.action = "e_biz_actual.asp?boardId="+boardId
			getForm.submit()
	}

}



//  
function	 checkConfirmForm()
{		
	getForm = document.checkForm	
	
	if(getForm.confirm[1].checked)
	{
		alert("alert some text ");
		return 
	}
	else
	{
			getForm.confirmOk.value = "Yes"
			getForm.submit()
	}

}



//
function	 checkJumin()
 
{		
		form = document.checkForm	
	
			juminNum = form.jnum1.value + form.jnum2.value;
			str="234567892345";

			sum=0;
			for(p=0; p<12; p++)
			{
						sum += parseInt(juminNum.charAt(p)) * parseInt(str.charAt(p));
			}
		
			temp=(11-sum % 11) % 10
			if(temp != juminNum.charAt(12)) 
			{
					alert("alert infor");
					form.jnum1.value = ""
					form.jnum2.value = ""
					form.jnum1.focus();
					return false;
			}

}


function inputbirth()
{
        var temp1,temp2,temp3;
        temp1=document.checkForm.jnum1.value.substring(0,2);
        temp2=document.checkForm.jnum1.value.substring(2,4);
        temp3=document.checkForm.jnum1.value.substring(4,6);

		if( temp1 < 30 )
		{
			document.checkForm.memBirth1.value="20"+temp1; 
		}
        else
		{
			document.checkForm.memBirth1.value="19"+temp1;
		}
        document.checkForm.memBirth2.value=temp2;
        document.checkForm.memBirth3.value=temp3;
}




//涝荤瘤盔 汽眉农 窃荐
function checkRecuritForm(whereGo)
{
				
		var getForm = document.checkForm
	

		if(getForm.isCareer.value=="")
		{
			alert("alert infor");
			return;
		}
		if(getForm.applyPart.value=="")
		{
			alert("alert infor");
			return;
		}

		if(getForm.wishWork.value=="")
		{
			alert("alert infor");
			return;
		}

		if (isCkeckBlank(getForm.wishSalary,"锐噶楷豪") == false)								 						{	return ;	} // 
		if (isCkeckBlank(getForm.nameKor,"茄臂 疙") == false)								 								{	return ;	} // 
		if (isCkeckBlank(getForm.nameCh,"茄磊 疙") == false)								 								{	return ;	} //
		if (isCkeckBlank(getForm.nameEng,"康巩 疙") == false)								 								{	return ;	} //
		if (isCkeckBlank(getForm.tel1,"傈拳锅龋") == false)																	{	return; 	} // 
		if (isCkeckBlank(getForm.tel2,"傈拳锅龋") == false)																	{	return; 	} // 
		if (isCkeckBlank(getForm.tel3,"傈拳锅龋") == false)																	{	return; 	} // 

		if (isCkeckBlank(getForm.cell1,"绒措 傈拳锅龋") == false)														{	return; 	} // 
		if (isCkeckBlank(getForm.cell2,"绒措 傈拳锅龋") == false)														{	return; 	} // 
		if (isCkeckBlank(getForm.cell3,"绒措 傈拳锅龋") == false)														{	return; 	} // 
		if (checkEmail(getForm.email,"捞皋老") == false)																		{	return; 	} // 
		
		
				
			juminNum = getForm.jnum1.value + getForm.jnum2.value;
			str="234567892345";
			sum=0;
			for(r=0; r<12; r++)
			{
				sum += parseInt(juminNum.charAt(r)) * parseInt(str.charAt(r));
			}
				temp=(11-sum % 11) % 10
					if(temp != juminNum.charAt(12)) 
					{
						alert("肋给等 林刮锅龋 涝聪促.");
							getForm.jnum1.value = ""
							getForm.jnum2.value = ""
							getForm.jnum1.focus();
							return ;
					}

		if (isCkeckBlank(getForm.pRegister,"夯利") == false)								 											{	return ;	} //
		if (isCkeckBlank(getForm.zipcode1,"快祈锅龋") == false)								 									{	return ;	} // 
		if (isCkeckBlank(getForm.zipcode2,"快祈锅龋") == false)								 									{	return ;	} // 
		if (isCkeckBlank(getForm.Address,"林家") == false)								 											{	return ;	} //
	
	
		if (isCkeckBlank(getForm.BIMG,"捞固瘤") == false)								 											{	return ;	} // 
		if (fileCheckOnly(getForm.BIMG.value) == false)	{	return ;	} // 
		if (isCkeckBlank(getForm.eduPart[0],"切背疙") == false)									{	return; 	}
		if (isCkeckBlank(getForm.Isgraduate[0],"凉诀备盒") == false)									{	return; 	}
	
	if(whereGo =="go")
	{
		
		getForm.target = "_self";
		getForm.action = "upfileExec.asp";
		getForm.submit();
	} 

	if(whereGo == "print")
	{
		
		var win = window.open("", "preview", "width=680, height=700, scrollbars=yes, toolbar=no, status=no");
		getForm.target = "preview";
		getForm.action = "recruit02_apply_view.asp";
		getForm.submit();
	}
}


function chSpText(input)
{

	str = new String(input.value);
	str = str.replace(/,/gi, '/');
	input.value = str
}

// 
function checkEmail(obj,notice)
{
	 if (isCkeckBlank(obj,notice) == false)	 		{	return false;	}

	 if( obj.value.length > 0 )
	{
            var regExp = /[a-z0-9]{2,}@[a-z0-9-]{2,}\.[a-z0-9]{2,}/i;
                if(!regExp.test(obj.value))
                {
                        alert('infor08');
                        obj.value = "";
                        obj.focus();
                        return false ;
               }
	}
 return true;
}

//   
function isCkeckBlank(checkBlank,notice)
{
	if(checkBlank.value.length == 0) 
		{
			alert(notice+"infor01");
			checkBlank.focus();
			return false;
		}
 return true;
}


function fileCheck(obj,ImgType)
{
	//    
	pathpoint = obj.lastIndexOf('.');
	filepoint = obj.substring(pathpoint+1,obj.length);
	filetype = filepoint.toLowerCase();
		
	// 判断文件格式
	if(filetype=='jpg' || filetype=='gif' || filetype=='png' || filetype=='jpeg' || filetype=='bmp' || filetype=='fpx' || filetype=='mpeg' )
	{
	
		if (ImgType == 1)
		{
			document.checkForm.BIMGsrc.src = obj;
						 
		}
		/*
		if (ImgType == 2)
		{
			frm.MIMGsrc.src = obj;
		}
		
		if (ImgType == 3)
		{
			frm.SIMGsrc.src = obj;
		}
		*/	
	}
	else
	{
		// 
		alert('infor02');
		return false;
	}
		
	// 
	// 
	if(filetype=='bmp')
	{
		upload = confirm('BMP infor3 ?');
		if(!upload) return false;
	}
}


////// 
function fileCheckOnly(obj,ImgType)
{
		
	// 
	pathpoint	= obj.lastIndexOf('.');	
	filepoint		= obj.substring(pathpoint+1,obj.length);
	loc				=	obj.lastIndexOf('\\')
	fileName	=	obj.substring(pathpoint,loc+1);
	filetype		= filepoint.toLowerCase();
	//alert(fileName)
		
	// || filetype=='asf' || filetype=='mov' || filetype=='avi')
	if(filetype=='jpg' || filetype=='gif' || filetype=='png' || filetype=='jpeg' || filetype=='bmp' || filetype=='fpx' || filetype=='mpeg' )
	{
		if (isKor(fileName))
		{
			
				//     
				alert(' infor4 ');
				return false;
		}

		if (ImgType == 1)
		{
			document.checkForm.BIMGsrc.src = obj;
			document.checkForm.BIMGsrc1.value = obj;
						 
		}
	}
	else
	{
		// .
		alert(' info05');
		return false;
	}
		
	// 
	// 
	if(filetype=='bmp')
	{
		upload = confirm('BMP infor06');
		if(!upload) return false;
	}
}


 //
function checkName(str,notice)
{
	if (isCkeckBlank(str,notice) == false)	{	return false;	}
	
	var sp_char = " !@#$%^&*()_-+|/;:,.?`~{}[]<>'1234567890" + '"'		//
	for(var i=0; i < str.value.length; i++)
	{
		if(	sp_char.indexOf(str.value.charAt(i)) != -1)
		{
			alert(notice + " infor07")
			str.value="";
			str.focus();
			return false;
		}
	}
return true;
}


//
function trim(str)
{

	var count = str.length;
	var len = count;                
	var st = 0;
	while ((st < len) && (str.charAt(st) <= ' '))
	{
			st++;
	}
	while ((st < len) && (str.charAt(len - 1) <= ' '))
	{
			len--;
	}             

	return ((st > 0) || (len < count)) ? str.substring(st, len) : str ;   

} 

//
function goChangeStr(m_obj)
{ 		
		var getForm = document.checkForm
		
		if( m_obj == "1")
		{
			getForm.memId.value = getForm.memId.value.toLowerCase();

		}
		else if(m_obj == "2")
		{
 			getForm.memPwd1.value = getForm.memPwd1.value.toLowerCase();
		}
		else if(m_obj == "3")
		{
					getForm.memPwd2.value = getForm.memPwd2.value.toLowerCase();
		}
}



//
function onlyNmber()
{   
	if((event.keyCode<48)||(event.keyCode>57))
			event.returnValue=false;
}	

// 
function onlyString()
{   
	if((event.keyCode<65)||(event.keyCode>122))
			event.returnValue=false;
}	

//
function isNum(str)
{
		alert(str.value)	
  	for(i = 0; i < str.length; i++)
  	{
    		ch = str.charAt(i);
    		if(ch < "0" || ch > "9")
    			return false;
  	}
 return true;
}
 
//
function isKor(str)
{
	for(i=0; i<str.length; i++)
	{
		if(str.charCodeAt(i) > 12593)
				return true;
  	}
	return false;
}


//
function isKorCheck(inputName)
{
	//alert(inputName)
	
	str = eval("document.checkForm."+inputName)
	for(i=0; i<str.value.length; i++)
	{
		if(str.value.charCodeAt(i) > 12593)
		{
			str.value = ""
			str.focus()
			return false;
		}
  	}
	return true;
	
}

		function StringTokenizer(str,separator) 
		{
			arrayOfStrings = str.split(separator);
			return arrayOfStrings;
		}

// 弹出窗口， 新闻编辑		
    function OpenWindow(openstring)
    {    	  	
    	var win=window.open(openstring ,'NewsWindow','fullscreen=0,width=640,height=500,left=200,top=80 toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0');
        win.focus();
    }
    
     function delrecord(delstring)
     {
         if (confirm('删除将不可恢复，是否确定！')) 
         {
              document.location.href="/index/admin/"+delstring
         }
     }
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
    
    
    
    
    
    
    
    
    
    
    
    
    
