function checkForm(oT){
	if (oT.isKeySubmit)
			if (oT.isKeySubmit=="yes")
				return false;
	for (var i=0;i<oT.length;i++){
		if (oT[i].evalue){
			if ((oT[i].tagName=='INPUT')&&(oT[i].type=='text')&&(oT[i].value=='')&&(oT[i].disabled==true)&&(oT[i].mustPost=="Y")){
				alert('请输入'+oT[i].evalue)
				try{
					oT[i].focus()	
				} catch(e){
					alert('此输入框已被隐藏，请手动切换到相应输入模块。')
				}
				return false
			}
			if ((oT[i].value=='')&&(oT[i].disabled==false)){
				alert('请输入'+oT[i].evalue)
				try{
					oT[i].focus()
				} catch(e){
					alert('此输入框已被隐藏，请手动切换到相应输入模块。')
				}
				return false
			}
		}
		if (oT[i].mytype=="num")
			if ((oT[i].evalue)||(oT[i].value!=''))
				if (!checkNum(oT[i])) {
					alert('请输入数字');
					oT[i].select();
					return false;
				}
		if (oT[i].mytype=="date")
			if ((oT[i].evalue)||(oT[i].value!=''))
				if (!checkDate(oT[i])) {
					alert('请输入日期时间');
					oT[i].select();
					return false;
				}
		}
	if ((document.all.editFrame)&&(oT.content1)){
		oT.content.value=editFrame.getContent()
		var cutId=1,err=false,maxLength=50000
		while (oT.content.value.length>maxLength){
			if (!eval("oT.content"+cutId)){
				err=true
				break;
			}
			eval("oT.content"+cutId).value=oT.content.value.substring(0,maxLength)
			oT.content.value=oT.content.value.substring(maxLength,oT.content.value.length)
			cutId++
		}
		if (err==true){
			alert('内容太长！')
			return false;
		}
	}
	for (i=0;i<oT.length;i++)
		if ((oT[i].tagName=='INPUT')&&(oT[i].type=='text')&&(oT[i].disabled==true)&&(oT[i].mustPost=="Y"))
			oT[i].disabled=false
	return true;	
}

function OnFocusCheckValue(checkValue,inputObj){
	if(checkValue==inputObj.value){
		inputObj.value = ""
	}
}

function OnBlurCheckValue(checkValue,inputObj){
	if(inputObj.value==""){
		inputObj.value = checkValue
	}
}

function doZoom(contentStr,fontCnt){
	var	contentObj = eval("document.getElementById('" + contentStr + "')");
	var contentInner = contentObj.all;
	contentObj.style.fontSize = fontCnt;
	for(var i=0;i<contentInner.length;i++){
		try{
		contentInner[i].style.fontSize = fontCnt
		}catch(e){}
	}
}

function saveFormSubmit(cmdNum){
	saveForm.cmd.value=cmdNum;
	saveForm.submit()
}

function checkNum(inputObj){
	if(isNaN(inputObj.value)){
		return false;
	}else{
		return true;
	}
}

<!-- 
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_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_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_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 printContentInput(){
	document.write('<input name="content" type="hidden" id="content">');
	document.write('<input name="content1" type="hidden" id="content1"><input name="content2" type="hidden" id="content2">');
	document.write('<input name="content3" type="hidden" id="content3"><input name="content4" type="hidden" id="content4">');
	document.write('<input name="content5" type="hidden" id="content5"><input name="content6" type="hidden" id="content6">');
	document.write('<input name="content7" type="hidden" id="content7"><input name="content8" type="hidden" id="content8">');
	document.write('<input name="content9" type="hidden" id="content9">'); 
}