var checkMail = /\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/;

function checkauthor()
{
	if(document.questionForm.author.value.replace(/^\s+|\s+$/g,"")==''){
		document.getElementById("auth").innerHTML=' 请输入您的姓名'	
	}
}
function checkauthor1()
{
	if(document.questionForm.author.value.replace(/^\s+|\s+$/g,"")==''){
		document.getElementById("auth").innerHTML='<font color="blue"> 请输入您的姓名</font>'	
	}
	else{
		document.getElementById("auth").innerHTML=''
	}	
}

function checktel()
{
	if(document.questionForm.tel.value.replace(/^\s+|\s+$/g,"")==''){
		document.getElementById("tel2").innerHTML=' 请输入电话'	
	}
}
function checktel1()
{
	if(document.questionForm.tel.value.replace(/^\s+|\s+$/g,"")==''){
		document.getElementById("tel2").innerHTML='<font color="blue"> 请输入电话</font>'	
	}
	else{
		document.getElementById("tel2").innerHTML=''
	}	
}

function checkemail()
{
	if(document.questionForm.email.value.replace(/^\s+|\s+$/g,"")==''){
		document.getElementById("e_mail").innerHTML=' 请输入您的电子邮箱'	
	}
}
function checkemail1()
{
	if(document.questionForm.email.value.replace(/^\s+|\s+$/g,"")==''){
		document.getElementById("e_mail").innerHTML='<font color="blue"> 请输入您的电子邮箱</font>'	
	}
	else if (!checkMail.test(document.questionForm.email.value))
	{		
			document.getElementById("e_mail").innerHTML='<font color="blue"> 邮件输入格式不正确,请重新输入</font>';
	}
	else{
		document.getElementById("e_mail").innerHTML=''
	}	
}

function checkecompany()
{
	if(document.questionForm.company.value.replace(/^\s+|\s+$/g,"")==''){
		document.getElementById("company1").innerHTML=' 请输入您的公司名称'	
	}
}
function checkecompany1()
{
	if(document.questionForm.company.value.replace(/^\s+|\s+$/g,"")==''){
		document.getElementById("company1").innerHTML='<font color="blue"> 请输入您的公司名称</font>'	
	}	
	else{
		document.getElementById("company1").innerHTML=''
	}	
}

function checkeaddress()
{
	if(document.questionForm.address.value.replace(/^\s+|\s+$/g,"")==''){
		document.getElementById("address2").innerHTML=' 请输入您的联系地址'	
	}
}
function checkeaddress1()
{
	if(document.questionForm.address.value.replace(/^\s+|\s+$/g,"")==''){
		document.getElementById("address2").innerHTML='<font color="blue"> 请输入您的联系地址</font>'	
	}	
	else{
		document.getElementById("address2").innerHTML=''
	}	
}

function checkecontent()
{
	if(document.questionForm.content.value.replace(/^\s+|\s+$/g,"")==''){
		document.getElementById("cont").innerHTML=' 请输入内容'	
	}
}
function checkecontent1()
{
	if(document.questionForm.content.value.replace(/^\s+|\s+$/g,"")==''){
		document.getElementById("cont").innerHTML='<font color="blue"> 请输入内容</font>'	
	}	
	else{
		document.getElementById("cont").innerHTML=''
	}	
}

function checkecontent3()
{
	if(document.questionForm.content.value.replace(/^\s+|\s+$/g,"")==''){
		document.getElementById("cont").innerHTML=' 请输入工作经历'	
	}
}
function checkecontent4()
{
	if(document.questionForm.content.value.replace(/^\s+|\s+$/g,"")==''){
		document.getElementById("cont").innerHTML='<font color="blue"> 请输入工作经历</font>'	
	}	
	else{
		document.getElementById("cont").innerHTML=''
	}	
}

function checkdept()
{
	if(document.questionForm.company.value.replace(/^\s+|\s+$/g,"") == ''){
		document.getElementById("dept").innerHTML=' 请输入您的公司名称';
	}
}

function checkdept1()
{
	if(document.questionForm.company.value.replace(/^\s+|\s+$/g,"") == ''){
		document.getElementById("dept").innerHTML='<font color="blue"> 请输入您的公司名称</font>';
	}else {
		document.getElementById("dept").innerHTML='';
	}	
}

function checktitle()
{
	if(document.questionForm.qtitle.value.replace(/^\s+|\s+$/g,"") == ''){
		document.getElementById("title1").innerHTML=' 请输入您的标题';
	}
		
}

function checktitle1()
{
	if(document.questionForm.qtitle.value.replace(/^\s+|\s+$/g,"") == ''){
		document.getElementById("title1").innerHTML='<font color="blue"> 请输入您的标题</font>';
	}else {
		document.getElementById("title1").innerHTML='';
	}	
}

function checkmailcode()
{
	if(document.questionForm.mailcode.value.replace(/^\s+|\s+$/g,"") == ''){
		document.getElementById("mail_code").innerHTML=' 请输入您的邮政编码';
	}
}

function checkmailcode1()
{
	if(document.questionForm.mailcode.value.replace(/^\s+|\s+$/g,"") == ''){
		document.getElementById("mail_code").innerHTML='<font color="blue"> 请输入你的邮政编码</font>';
	}else {
		document.getElementById("mail_code").innerHTML='';
	}	
}

function checkstring1()
{
	if(document.questionForm.string1.value.replace(/^\s+|\s+$/g,"") == '' || document.questionForm.string1.value.replace(/^\s+|\s+$/g,"") == '0'){
		document.getElementById("string11").innerHTML=' 请输入产品名称及型号';
	}
}

function checkstring1_1()
{
	if(document.questionForm.string1.value.replace(/^\s+|\s+$/g,"") == ''  || document.questionForm.string1.value.replace(/^\s+|\s+$/g,"") == '0'){
		document.getElementById("string11").innerHTML='<font color="blue"> 请输入产品名称及型号</font>';
	}else {
		document.getElementById("string11").innerHTML='';
	}	
}

function checkstring3()
{
	if(document.questionForm.string3.value.replace(/^\s+|\s+$/g,"") == '' || document.questionForm.string3.value.replace(/^\s+|\s+$/g,"") == '0'){
		document.getElementById("string31").innerHTML=' 请输入反馈日期';
	}
}

function checkstring3_1()
{
	if(document.questionForm.string3.value.replace(/^\s+|\s+$/g,"") == ''  || document.questionForm.string3.value.replace(/^\s+|\s+$/g,"") == '0'){
		document.getElementById("string31").innerHTML='<font color="blue"> 请输入反馈日期</font>';
	}else {
		document.getElementById("string31").innerHTML='';
	}	
}

function checkpname()
{
	if(document.questionForm.pname.value.replace(/^\s+|\s+$/g,"") == ''){
		document.getElementById("pname1").innerHTML=' 请输入产品名称及型号';
	}
}

function checkspname1()
{
	if(document.questionForm.pname.value.replace(/^\s+|\s+$/g,"") == ''){
		document.getElementById("pname1").innerHTML='<font color="blue"> 请输入产品名称及型号</font>';
	}else {
		document.getElementById("pname1").innerHTML='';
	}	
}


function checkjob()
{
	if(document.questionForm.job.value.replace(/^\s+|\s+$/g,"")==''){
		document.getElementById("job2").innerHTML=' 请输入您应聘的职位';	
	}
}
function checkjob1()
{
	if(document.questionForm.job.value.replace(/^\s+|\s+$/g,"")==''){
		document.getElementById("job2").innerHTML='<font color="blue"> 请输入您应聘的职位</font>';	
	}
	else{
		document.getElementById("job2").innerHTML='';
	}	
}

function checkIDcard()
{
	if(document.questionForm.IDcard.value.replace(/^\s+|\s+$/g,"")==''){
		document.getElementById("idcard2").innerHTML=' 请输入身份证'	;
	}
}
function checkIDcard1()
{
	if(document.questionForm.IDcard.value.replace(/^\s+|\s+$/g,"")==''){
		document.getElementById("idcard2").innerHTML='<font color="blue"> 请输入身份证</font>';	
	}
	else{
		document.getElementById("idcard2").innerHTML='';
	}	
}

function checkhukou()
{
	if(document.questionForm.hukou.value.replace(/^\s+|\s+$/g,"")==''){
		document.getElementById("hukou2").innerHTML=' 输入户口地';	
	}
}
function checkhukou1()
{
	if(document.questionForm.hukou.value.replace(/^\s+|\s+$/g,"")==''){
		document.getElementById("hukou2").innerHTML='<font color="blue"> 输入户口地</font>';	
	}
	else{
		document.getElementById("hukou2").innerHTML='';
	}	
}

function checkforeignlanguage()
{
	if(document.questionForm.foreignlanguage.value.replace(/^\s+|\s+$/g,"")==''){
		document.getElementById("foreignlanguage2").innerHTML=' 请输入外语语种';	
	}
}
function checkforeignlanguage1()
{
	if(document.questionForm.foreignlanguage.value.replace(/^\s+|\s+$/g,"")==''){
		document.getElementById("foreignlanguage2").innerHTML='<font color="blue"> 请输入外语语种</font>'	;
	}
	else{
		document.getElementById("foreignlanguage2").innerHTML='';
	}	
}

function checkeducationstory()
{
	if(document.questionForm.educationstory.value.replace(/^\s+|\s+$/g,"")==''){
		document.getElementById("educationstory2").innerHTML=' 输入学习经历'	;
	}
}
function checkeducationstory1()
{
	if(document.questionForm.educationstory.value.replace(/^\s+|\s+$/g,"")==''){
		document.getElementById("educationstory2").innerHTML='<font color="blue"> 输入学习经历</font>';	
	}
	else{
		document.getElementById("educationstory2").innerHTML='';
	}	
}


//-----------会员----------

