document.onkeydown=shutCtrN;
function shutCtrN()
{
	var iCode=event.keyCode;
	if((event.ctrlKey==true)&&(iCode==78))
	{
		//window.event.returnValue=false;
	}
}
function blurPhone() 
{
	var rePhone = /[^\d\-\(\) ]/g
	var eObj = event.srcElement
	var tmpValue = eObj.value
		tmpValue = tmpValue.replace(rePhone,"") 
	eObj.value = tmpValue
}
function blurEmail() // email
{
	var reTime = /.*@.*\..*/g
	var eObj = event.srcElement
	if(eObj.value!="")
	{
		if(eObj.value.search(reTime) != 0)
		{
			eObj.select()
			return false
		}
	}
}  
function blurNa() //输入金额,不能输入第二个小数点
{
	var reNumNa = /[^\d\.]/g
	var eObj = event.srcElement
	var tmpValue = eObj.value
		tmpValue = tmpValue.replace(reNumNa,"") 

	var tmpStr = tmpValue
	if(tmpStr.indexOf('.')!=-1 && tmpStr.split('.').length>2)
	{
		var tmpArr = tmpStr.split('.')
		var tmpStr0 = tmpArr[0]
		var tmpStr1 = tmpArr[1]
			tmpValue = tmpStr0+'.'+tmpStr1
	}
	eObj.value = tmpValue
}

function blurNum() //输入金额,不能输入第二个小数点
{
	var reNumNa = /[^\d]/g
	var eObj = event.srcElement
	var tmpValue = eObj.value
		tmpValue = tmpValue.replace(reNumNa,"") 
	
	eObj.value = tmpValue
}
function prephone()//电话
{
var iCode=event.keyCode;
	if(((iCode>95&&iCode<106)||(iCode>47&&iCode<59))||((iCode==8)||(iCode==46)||(iCode==189)||(iCode==37)||(iCode==189))){
		event.returnValue=true;
	}else{
		event.returnValue=false;
	}
	if(((event.shiftKey==true)&&(iCode==57))||((event.shiftKey==true)&&(iCode==48))||((event.shiftKey==true)&&(iCode==48)))
	{
	event.returnValue=false;
	}

	//var str="()";
	//alert(str.charCodeAt(1))
}
function pressSpNa() //输入金额,不能输入第二个小数点
{
	var iCode=event.keyCode;
	var inputobj=window.event.srcElement;
	if(((iCode>95&&iCode<106)||(iCode>47&&iCode<59))||((iCode==8)||(iCode==46)||(iCode==37)||(iCode==39))||(iCode==9))
	{
		event.returnValue=true;
	}
	else if(((iCode==190)||(iCode==110))&&(event.shiftKey==false))
	{
	if((inputobj.value)&&(inputobj.value.indexOf(".")!=-1))
	{	
	event.returnValue=false;
	}	
	else
	{
	event.returnValue=true;
	}
	}
	else
	{
	event.returnValue=false;
	}
}

function pressSpInt() // 只能输入数字与整数
{
	//alert(event.keyCode)
	var iCode=event.keyCode;
	if((iCode>95&&iCode<106) || (iCode>47&&iCode<59) || (iCode==8) || (iCode==46) || (iCode==37) || (iCode==39) || (iCode==229)||(iCode==9)){
		event.returnValue=true;
	}
	else{
		event.returnValue=false;
	}
	
}
function pressSp() // 不能输入<>与空格
{
	var obj=event.srcElement;
	var iCode=event.keyCode;
	if(((event.shiftKey==true)&&((iCode==188)||(iCode==190))))
	{
		event.returnValue=false
	}
}           
function pressS() // 不能输入<>
{
	var iCode=event.keyCode;
	var obj=event.srcElement;
	if((event.shiftKey==true)&&((iCode==188)||(iCode==190)))
	{
		event.returnValue=false
	}
}
function pressEng() // 只能输入英文(修改过，能输入数字也能输入"/")
{
	var cKey=this.event.keyCode;
	var obj=event.srcElement;
	if(((64<cKey&&cKey<91)||(cKey>95&&cKey<106)||(cKey>47&&cKey<59))||(cKey==222)||(cKey==190)||(cKey==8)||(cKey==46)||(cKey==32)||(cKey==191))
	{
		event.returnValue=true;
	}
	else
	{
	event.returnValue=false;
	}
}
function pressSpI() // 只能输入数字与'
{
	var iCode=this.event.keyCode;
	var obj=event.srcElement;
	if(((iCode>95&&iCode<106)||(iCode>47&&iCode<59))||(iCode==8)||(iCode==46)||(iCode==37)||(iCode==39)||(iCode==222))
	{
		event.returnValue=true;		
	}
	else{
		event.returnValue=false;
	}
}

function pressPin() // 针筒'
{
	var iCode=this.event.keyCode;
	var obj=event.srcElement;
	var pobj=obj.parentElement;
	while(pobj.tagName!="BODY")
	{pobj=pobj.parentElement;}
	alert(pobj.text)
	if((obj.value.indexOf('”')==-1&&obj.value.indexOf('“')==-1&&obj.value.indexOf('"')==-1)||obj.text)
	{
		if((iCode>95&&iCode<106)||(iCode>47&&iCode<59)||(iCode==8)||(iCode==46)||(iCode==37)||(iCode==39)||(iCode==229))
			event.returnValue=true;
		else
			event.returnValue=false;
		if(iCode==222&&event.shiftKey==true)
			event.returnValue=true;
	}
	else
	{
		if((iCode==8)||(iCode==46)||(iCode==37)||(iCode==39))
			event.returnValue=true;		
		else
			event.returnValue=false;
	}
}

function doUploadFile(){

	window.open("/ezoa/page/workflow/RCS/business/signup/UploadFile.jsp","Report","width=600,height=400,top=0, left=0,scrollbars=yes,resizable=yes");
	document.forms[0].target = "Report";
}
/****************************
*          右键             *
****************************/
/*var isie=0;
if(window.navigator.appName=="Microsoft Internet Explorer"&&window.navigator.appVersion.substring(window.navigator.appVersion.indexOf("MSIE")+5,window.navigator.appVersion.indexOf("MSIE")+8)>=5.5) {
isie=1;
}
else {
isie=0;
}
if(isie) {
var html="";
html+='<TABLE STYLE="border:1pt solid #808080" BGCOLOR="#D7E3EA" WIDTH="100"   CELLPADDING="0" CELLSPACING="1">';
html+='<ST'+'YLE TYPE="text/css">\n';
html+='a:link {text-decoration:none;font-size:12pt;}\n';
html+='a:visited {text-decoration:none;font-size:12pt;}\n';
html+='td {font-size:10pt;}\n';
html+='</ST'+'YLE>\n';
html+='<SC'+'RIPT LANGUAGE="JavaScript">\n';
html+='\n<'+'!--\n';
html+='window.onerror=null;\n';
html+='/'+' -'+'->\n';
html+='</'+'SCRIPT>\n';
//html+='<TR><TD STYLE="border:1pt solid #CCCCCC" ID="i0" ONMOUSEOVER="document.all.i0.style.background=\'#CFD6E8\';document.all.i0.style.border=\'1pt solid #737B92\';" ONMOUSEOUT="document.all.i0.style.background=\'#CCCCCC\';document.all.i0.style.border=\'1pt solid #CCCCCC\';" ONCLICK="window.history.go(-1);">&nbsp;<IMG SRC="/ezoa/images/menu/menuback.gif" WIDTH="12" HEIGHT="12" BORDER="0" HSPACE="0" VSPACE="0" ALIGN="absmiddle">&nbsp;后退</TD></TR>';

//html+='<TR><TD STYLE="border:1pt solid #CCCCCC" ID="i1" ONMOUSEOVER="document.all.i1.style.background=\'#CFD6E8\';document.all.i1.style.border=\'1pt solid #737B92\';" ONMOUSEOUT="document.all.i1.style.background=\'#CCCCCC\';document.all.i1.style.border=\'1pt solid #CCCCCC\';" ONCLICK="window.history.go(1);">&nbsp;<IMG SRC="/ezoa/images/menu/menuforward.gif" WIDTH="12" HEIGHT="12" BORDER="0" HSPACE="0" VSPACE="0" ALIGN="absmiddle">&nbsp;前进</TD></TR>';

//html+='<TR><TD STYLE="border:1pt solid #CCCCCC"><IMG SRC="/ezoa/images/menu/pixel.gif" WIDTH="130" HEIGHT="1"></TD></TR>';
//html+='<TR><TD STYLE="border:1pt solid #CCCCCC" ID="i5" ONMOUSEOVER="document.all.i5.style.background=\'#CFD6E8\';document.all.i5.style.border=\'1pt solid #737B92\';" ONMOUSEOUT="document.all.i5.style.background=\'#CCCCCC\';document.all.i5.style.border=\'1pt solid #CCCCCC\';" ONCLICK="window.parent.location=\'view-source:\'+window.parent.location.href;">&nbsp;<IMG SRC="/ezoa/images/menu/menusource.gif" WIDTH="12" HEIGHT="12" BORDER="0" HSPACE="0" VSPACE="0" ALIGN="absmiddle">&nbsp;查看源码</TD></TR>';

html+='<TR><TD STYLE="border:1pt solid #D7E3EA" ID="i8" ONMOUSEOVER="document.all.i8.style.background=\'#CFD6E8\';document.all.i8.style.border=\'1pt solid #ecf0f4\';" ONMOUSEOUT="document.all.i8.style.background=\'#D7E3EA\';document.all.i8.style.border=\'1pt solid #D7E3EA\';" ONCLICK="if(window.parent.document.body.style.zoom!=0) window.parent.document.body.style.zoom*=1.6; else window.parent.document.body.style.zoom=1.6;"  height=20>&nbsp;&nbsp;放 大</TD></TR>';

html+='<TR><TD STYLE="border:1pt solid #D7E3EA" ID="i9" ONMOUSEOVER="document.all.i9.style.background=\'#CFD6E8\';document.all.i9.style.border=\'1pt solid #ecf0f4\';" ONMOUSEOUT="document.all.i9.style.background=\'#D7E3EA\';document.all.i9.style.border=\'1pt solid #D7E3EA\';" ONCLICK="if(window.parent.document.body.style.zoom!=0) window.parent.document.body.style.zoom*=0.625; else window.parent.document.body.style.zoom=0.625;"  height=20>&nbsp;&nbsp;缩 小</TD></TR>';

html+='</TABLE>';

var oPopup = window.createPopup();

}

function dopopup(x,y) {
if(isie) {
var oPopupBody = oPopup.document.body;
oPopupBody.innerHTML = html;
oPopup.show(x, y, 100, 45, document.body);
}
}

function click(e) {
if(isie) {
if(document.all) {
if(event.button==2||event.button==3) {
dopopup(event.x-1,event.y-1);
}
}
}
}

if(isie) {
document.oncontextmenu = function() { dopopup(event.x,event.y);return false; }
document.onmousedown = click;
}*/
