function checkSubmit_c()
{	



	
		
	if(isEmpty(document.form1.schoolname.value))
	{	
		alert("请填写学校名称 （中文）");
		document.form1.schoolname.focus();
		return false;
	}

	if(isEmpty(document.form1.eSchoolname.value))
	{	
		alert("请填写学校名称 （英文）");
		document.form1.eSchoolname.focus();
		return false;
	}

	if(isEmpty(document.form1.department.value))
	{	
		alert("请填写所在院系");
		document.form1.department.focus();
		return false;
	}
	
	if(isEmpty(document.form1.cFullname.value))
	{	
		alert("请填写您的姓名（中文）");
		document.form1.cFullname.focus();
		return false;
	}
	
	if(isEmpty(document.form1.fullname.value))
	{	
		alert("请填写您的姓名（英文）");
		document.form1.fullname.focus();
		return false;
	}
	
	if(!isEmail(document.form1.loginname.value))
	{	
		alert("请正确填写邮箱, 保证不会公开您的email");
		document.form1.loginname.focus();
		return false;
	}
	
	
	if(isEmpty(document.form1.certificateCode.value))
	{	
		alert("请填写证件号码）");
		document.form1.certificateCode.focus();
		return false;
	}
	
	if(document.form1.certificateType.value=="00290001")
	{	
		if(document.form1.certificateCode.value.length!=18)
	{	
		alert("请正确填写证件号码");
		document.form1.certificateCode.focus();
		return false;
	}
	}
	
	if(isEmpty(document.form1.speciality.value))
	{	
		alert("请填写专业");
		document.form1.speciality.focus();
		return false;
	}
	

	if(isEmpty(document.form1.motto.value))
	{	
		alert("请填写格言（英文）");
		document.form1.motto.focus();
		return false;
	}
	
	if(isEmpty(document.form1.speechTitle.value))
	{	
		alert("请填写定题演讲小标题（英文））");
		document.form1.speechTitle.focus();
		return false;
	}
	
	if(!isTel(document.form1.tel.value))
	{	
		alert("请正确填写固定电话");
		document.form1.tel.focus();
		return false;
	}

	if(isEmpty(document.form1.mobile.value))
	{	
		alert("请填写手机");
		document.form1.mobile.focus();
		return false;
	}
	
	if(isEmpty(document.form1.address.value))
	{	
		alert("请填写通讯地址");
		document.form1.address.focus();
		return false;
	}
	
	if(!isPostalCode(document.form1.postcode.value))
	{	
		alert("请填写邮编");
		document.form1.postcode.focus();
		return false;
	}
		

	if(isEmpty(document.form1.leaderName.value))
	{	
		alert("请填写指导教师姓名");
		document.form1.leaderName.focus();
		return false;
	}
		
	
	if(isEmpty(document.form1.leaderTel.value))
	{	
		alert("请填写指导教师联系电话");
		document.form1.leaderTel.focus();
		return false;
	}
	
			
	if(!isEmail(document.form1.leaderEmail.value))
	{	
		alert("请填写指导教师Email");
		document.form1.leaderEmail.focus();
		return false;
	}
	
	
	if(isEmpty(document.form1.parentName.value))
	{	
		alert("请填写家长姓名");
		document.form1.parentName.focus();
		return false;
	}
	
	if(isEmpty(document.form1.parentTel.value))
	{	
		alert("请填写家长联系电话");
		document.form1.parentTel.focus();
		return false;
	}
		
return true;

}



function checkSubmit_l()
{	


	
	if(isEmpty(document.form1.schoolname.value))
	{	
		alert("请填写学校名称 （中文）");
		document.form1.schoolname.focus();
		return false;
	}

	if(isEmpty(document.form1.eSchoolname.value))
	{	
		alert("请填写学校名称 （英文）");
		document.form1.eSchoolname.focus();
		return false;
	}

	if(!isEmail(document.form1.loginname.value))
	{	
		alert("请正确输入邮箱, 保证不会公开您的email");
		document.form1.loginname.focus();
		return false;
	}
	

	if(isEmpty(document.form1.department.value))
	{	
		alert("请填写所在院系");
		document.form1.department.focus();
		return false;
	}
	
	if(isEmpty(document.form1.cFullname.value))
	{	
		alert("请填写您的姓名（中文）");
		document.form1.cFullname.focus();
		return false;
	}
	
	if(isEmpty(document.form1.fullname.value))
	{	
		alert("请填写您的姓名（英文）");
		document.form1.fullname.focus();
		return false;
	}
	
	if(isEmpty(document.form1.certificateCode.value))
	{	
		alert("请填写证件号码）");
		document.form1.certificateCode.focus();
		return false;
	}
	
		if(document.form1.certificateType.value=="00290001")
	{	
		if(document.form1.certificateCode.value.length!=18)
	{	
		alert("请正确填写证件号码");
		document.form1.certificateCode.focus();
		return false;
	}
	}
	
	
	if(isEmpty(document.form1.professionalTitle.value))
	{	
		alert("请填写职称");
		document.form1.professionalTitle.focus();
		return false;
	}
	
	if(isEmpty(document.form1.address.value))
	{	
		alert("请填写通讯地址");
		document.form1.address.focus();
		return false;
	}
	
	if(!isPostalCode(document.form1.postcode.value))
	{	
		alert("请填写邮编");
		document.form1.postcode.focus();
		return false;
	}
	
	
	if(!isTel(document.form1.tel.value))
	{	
		alert("请正确填写固定电话");
		document.form1.tel.focus();
		return false;
	}

	if(isEmpty(document.form1.mobile.value))
	{	
		alert("请填写手机");
		document.form1.mobile.focus();
		return false;
	}
	
	
	if(isEmpty(document.form1.candidateName.value))
	{	
		alert("请填写选手姓名");
		document.form1.candidateName.focus();
		return false;
	}
		
	
	
return true;

}


function checkSubmit_modify_c()
{	


	

	if(isEmpty(document.form1.motto.value))
	{	
		alert("请填写格言（英文）");
		document.form1.motto.focus();
		return false;
	}
	
	if(isEmpty(document.form1.speechTitle.value))
	{	
		alert("请填写定题演讲小标题（英文））");
		document.form1.speechTitle.focus();
		return false;
	}
	
	if(!isTel(document.form1.tel.value))
	{	
		alert("请正确填写固定电话");
		document.form1.tel.focus();
		return false;
	}

	if(isEmpty(document.form1.mobile.value))
	{	
		alert("请填写手机");
		document.form1.mobile.focus();
		return false;
	}
		if(isEmpty(document.form1.address.value))
	{	
		alert("请填写通讯地址");
		document.form1.address.focus();
		return false;
	}
	
	if(!isPostalCode(document.form1.postcode.value))
	{	
		alert("请填写邮编");
		document.form1.postcode.focus();
		return false;
	}
	
	
	
	if(isEmpty(document.form1.leaderName.value))
	{	
		alert("请填写指导教师姓名");
		document.form1.leaderName.focus();
		return false;
	}
		
	
	if(isEmpty(document.form1.leaderTel.value))
	{	
		alert("请填写指导教师联系电话");
		document.form1.leaderTel.focus();
		return false;
	}
	
			
	if(!isEmail(document.form1.leaderEmail.value))
	{	
		alert("请填写指导教师Email");
		document.form1.leaderEmail.focus();
		return false;
	}
	
	
	if(isEmpty(document.form1.parentName.value))
	{	
		alert("请填写家长姓名");
		document.form1.parentName.focus();
		return false;
	}
	
	if(isEmpty(document.form1.parentTel.value))
	{	
		alert("请填写家长联系电话");
		document.form1.parentTel.focus();
		return false;
	}

	
return true;

}



function checkSubmit_modify_l()
{	


	
	if(isEmpty(document.form1.address.value))
	{	
		alert("请填写通讯地址");
		document.form1.address.focus();
		return false;
	}
	
	if(!isPostalCode(document.form1.postcode.value))
	{	
		alert("请填写邮编");
		document.form1.postcode.focus();
		return false;
	}
	
	if(!isTel(document.form1.tel.value))
	{	
		alert("请正确填写固定电话");
		document.form1.tel.focus();
		return false;
	}

	if(isEmpty(document.form1.mobile.value))
	{	
		alert("请填写手机");
		document.form1.mobile.focus();
		return false;
	}
	
	
	if(isEmpty(document.form1.candidateName.value))
	{	
		alert("请填写选手姓名");
		document.form1.candidateName.focus();
		return false;
	}
		
	
	
return true;

}



function checkSubmit_match()
{	


	
	if(isEmpty(document.form1.matchAddress.value))
	{	
		alert("请填写参赛地点");
		document.form1.matchAddress.focus();
		return false;
	}
	
	if(!isDate("2008-"+document.form1.monthOfMatchDate.value+"-"+document.form1.dayOfMathDate.value))
	{	
		alert("非法日期，请重新选择");
		document.form1.monthOfMatchDate.focus();
		return false;
	}
	
	if(!isInt(document.form1.matchRank.value))
	{	
		alert("请正确填写名次");
		document.form1.matchRank.focus();
		return false;
	}

	if(isEmpty(document.form1.matchChairman.value))
	{	
		alert("请填写评委会主席");
		document.form1.matchChairman.focus();
		return false;
	}
	
	if(!isEmpty(document.form1.matchPhoto.value))
	{
		if(!checkfile(document.form1.matchPhoto.value,"JPG"))
		{
			alert("比赛现场照片您只能上传JPG文件");
			document.form1.matchPhoto.focus();
			return false;
			}
			
		
		if(document.form1.matchPhoto.value.indexOf("“")>-1||document.form1.matchPhoto.value.indexOf("”")>-1)
		{	
			alert("比赛现场照片文件名不能含特殊字符");
			document.form1.matchPhoto.focus();
			return false;
		}	
	}
	
	if(!isEmpty(document.form1.matchPhoto1.value))
	{
		if(!checkfile(document.form1.matchPhoto1.value,"JPG"))
		{
			alert("比赛现场照片您只能上传JPG文件");
			document.form1.matchPhoto1.focus();
			return false;
			}
			
		
		if(document.form1.matchPhoto1.value.indexOf("“")>-1||document.form1.matchPhoto1.value.indexOf("”")>-1)
		{	
			alert("比赛现场照片文件名不能含特殊字符");
			document.form1.matchPhoto1.focus();
			return false;
		}	
	}
	
	
	if(!isEmpty(document.form1.matchPhoto2.value))
	{
		if(!checkfile(document.form1.matchPhoto2.value,"JPG"))
		{
			alert("比赛现场照片您只能上传JPG文件");
			document.form1.matchPhoto2.focus();
			return false;
			}
			
		
		if(document.form1.matchPhoto2.value.indexOf("“")>-1||document.form1.matchPhoto2.value.indexOf("”")>-1)
		{	
			alert("比赛现场照片文件名不能含特殊字符");
			document.form1.matchPhoto2.focus();
			return false;
		}	
	}


	if(!isEmpty(document.form1.matchPhoto3.value))
	{
		if(!checkfile(document.form1.matchPhoto3.value,"JPG"))
		{
			alert("比赛现场照片您只能上传JPG文件");
			document.form1.matchPhoto3.focus();
			return false;
			}
			
		
		if(document.form1.matchPhoto3.value.indexOf("“")>-1||document.form1.matchPhoto3.value.indexOf("”")>-1)
		{	
			alert("比赛现场照片文件名不能含特殊字符");
			document.form1.matchPhoto3.focus();
			return false;
		}	
	}


	if(!isEmpty(document.form1.matchPhoto4.value))
	{
		if(!checkfile(document.form1.matchPhoto4.value,"JPG"))
		{
			alert("比赛现场照片您只能上传JPG文件");
			document.form1.matchPhoto4.focus();
			return false;
			}
			
		
		if(document.form1.matchPhoto4.value.indexOf("“")>-1||document.form1.matchPhoto4.value.indexOf("”")>-1)
		{	
			alert("比赛现场照片文件名不能含特殊字符");
			document.form1.matchPhoto4.focus();
			return false;
		}	
	}
return true;

}


function checkfile(obj,fileExt)
{
		
	var filename=obj;
	var fileLength=filename.length;
	var ext=filename.substring(fileLength-3,fileLength);
	ext=ext.toUpperCase(ext);
	if(ext!=fileExt)
	{
		//alert("您只能上传"+fileExt+"文件");
		return false;
	}	
	return true;
		

}


function test()
{
	if(!isEmpty(document.form1.matchReport.value))
	{
		if(!checkfile(document.form1.matchReport.value,"DOC"))
		{
			alert("比赛报道您只能上传word文件");
			document.form1.matchReport.focus();
			return false;
			}
		
		if(document.form1.matchReport.value.indexOf("“")>-1||document.form1.matchReport.value.indexOf("”")>-1)
		{	
			alert("比赛报道文件名不能含特殊字符");
			document.form1.matchReport.focus();
			return false;
		}	
	}

	if(!isEmpty(document.form1.mathImpressions.value))
	{
		if(!checkfile(document.form1.mathImpressions.value,"DOC"))
		{
			alert("参赛感言您只能上传word文件");
			document.form1.mathImpressions.focus();
			return false;
			}
		
		if(document.form1.mathImpressions.value.indexOf("“")>-1||document.form1.mathImpressions.value.indexOf("”")>-1)
		{	
			alert("参赛感言文件名不能含特殊字符");
			document.form1.mathImpressions.focus();
			return false;
		}	
	}
	}
	

function checkModify_match()
{	


	if(isEmpty(document.form2.matchAddress.value))
	{	
		alert("请填写参赛地点");
		document.form2.matchAddress.focus();
		return false;
	}
	
	if(!isDate("2008-"+document.form2.monthOfMatchDate.value+"-"+document.form1.dayOfMathDate.value))
	{	
		alert("非法日期，请重新选择");
		document.form2.monthOfMatchDate.focus();
		return false;
	}
	
	if(!isInt(document.form2.matchRank.value))
	{	
		alert("请正确填写名次");
		document.form2.matchRank.focus();
		return false;
	}

	if(isEmpty(document.form2.matchChairman.value))
	{	
		alert("请填写评委会主席");
		document.form2.matchChairman.focus();
		return false;
	}
	
	
return true;

}	
	
	
	
	
function checkSubmit_matchPhoto()
{	
	if(isEmpty(document.form1.matchPhoto.value))
	{	
		alert("请选择要上传的照片");
		document.form1.matchPhoto.focus();
		return false;
	}
	

		if(!checkfile(document.form1.matchPhoto.value,"JPG"))
		{
			alert("比赛现场照片您只能上传JPG文件");
			document.form1.matchPhoto.focus();
			return false;
			}
			
		
		if(document.form1.matchPhoto.value.indexOf("“")>-1||document.form1.matchPhoto.value.indexOf("”")>-1)
		{	
			alert("比赛现场照片文件名不能含特殊字符");
			document.form1.matchPhoto.focus();
			return false;
		}	
	
return true;

}


function checkSubmit_matchReport()
{	
	if(isEmpty(document.form1.matchReport.value))
	{	
		alert("请选择要上传的比赛现场报道");
		document.form1.matchReport.focus();
		return false;
	}
	

		if(!checkfile(document.form1.matchReport.value,"DOC"))
		{
			alert("比赛现场报道您只能上传Word文件");
			document.form1.matchReport.focus();
			return false;
			}
			
		
		if(document.form1.matchReport.value.indexOf("“")>-1||document.form1.matchReport.value.indexOf("”")>-1)
		{	
			alert("比赛现场报道文件名不能含特殊字符");
			document.form1.matchReport.focus();
			return false;
		}	
	
return true;

}



function checkSubmit_matchImpression()
{	
	if(isEmpty(document.form1.matchImpression.value))
	{	
		alert("请选择要上传的参赛感言");
		document.form1.matchImpression.focus();
		return false;
	}
	

		if(!checkfile(document.form1.matchImpression.value,"DOC"))
		{
			alert("参赛感言您只能上传Word文件");
			document.form1.matchImpression.focus();
			return false;
			}
			
		
		if(document.form1.matchImpression.value.indexOf("“")>-1||document.form1.matchImpression.value.indexOf("”")>-1)
		{	
			alert("参赛感言文件名不能含特殊字符");
			document.form1.matchImpression.focus();
			return false;
		}	
	
return true;

}
//-->
