// JavaScript Document
/*
	你问我答-精彩专题
	
	User_Name Age Home Work_On Phone Qicq Email Addr Content
*/
function checkZtForm(){
//if(checkZtUser_Name()){	
if(checkZtUser_Name()&&checkZtAge()&&checkZtHome()&&checkZtWork_On()&&checkZtPhone()&&checkZtQicq()&&checkZtEmail()&&checkZtAddr()&&checkZtContent()){
		return true;	
	}else{
		return false;	
	}
}

function checkZtUser_Name(){
	var User_Name=document.getElementById("User_Name").value;
	if(User_Name==""||User_Name==null){
		window.alert("请填写您的姓名！");
		ztForm.User_Name.focus();
		return false;
	}else{
		return true;
	}
}
function checkZtAge(){
	var Age=document.getElementById("Age").value;
	if(Age==""||Age==null){
		window.alert("请填写年龄！");
		ztForm.Age.focus();
		return false;
	}else{
		return true;	
	}
}
function checkZtHome(){
	var Home=document.getElementById("Home").value;
	if(Home==""||Home==null){
		window.alert("请填写籍贯！");
		ztForm.Home.focus();
		return false;
	}else{
		return true;	
	}
}
function checkZtWork_On(){
	var Work_On=document.getElementById("Work_On").value;
	if(Work_On==""||Work_On==null){
		window.alert("请填写所学专业！");
		ztForm.Work_On.focus();
		return false;
	}else{
		return true;	
	}
}
function checkZtPhone(){
	var Phone=document.getElementById("Phone").value;
	if(Phone==""||Phone==null){
		window.alert("请填写电话号码！");
		ztForm.Phone.focus();
		return false;
	}else{
		return true;	
	}
}
function checkZtQicq(){
	var Qicq=document.getElementById("Qicq").value;
	if(Qicq==""||Qicq==null){
		window.alert("请填写QQ号码！");
		ztForm.Qicq.focus();
		return false;
	}else{
		return true;	
	}
}
function checkZtEmail(){
	var Email=document.getElementById("Email").value;
	if(Email==""||Email==null){
		window.alert("请填写邮箱地址！");
		ztForm.Email.focus();
		return false;
	}else{
		return true;	
	}
}
function checkZtAddr(){
	var Addr=document.getElementById("Addr").value;
	if(Addr==""||Addr==null){
		window.alert("请填写地址！");
		ztForm.Addr.focus();
		return false;
	}else{
		return true;	
	}
}
function checkZtContent(){
	var Content=document.getElementById("Content").value;
	if(Content==""||Content==null){
		window.alert("请填写最想了解的问题！");
		ztForm.Content.focus();
		return false;
	}else{
		return true;	
	}
}


/*
	左侧报名
*/
function checkLeftForm(){
	if(checkqqnumber()&&checkphonenumber()){
		return true;	
	}else{
		return false;	
	}
}
function checkqqnumber(){
	var qqnumber=document.getElementById("qqnumber").value;
	if(qqnumber==""||qqnumber==null){
		window.alert("请填写您的QQ！");
		leftForm.qqnumber.focus();
		return false;
	}else{
		return true;
	}
	return false;
}
function checkphonenumber(){
	var phonenumber=document.getElementById("phonenumber").value;
	if(phonenumber==""||phonenumber==null){
		window.alert("请选择您的电话！");
		leftForm.phonenumber.focus();
		return false;
	}else{
		return true;	
	}
}



/*
	你问我答-在线报名
*/
function checkBmForm(){
		//Title  Author textParam1  checkCode  Content
	if(checkBmUser_Name()&&checkBmLevel()&&checkBmPhone()&&checkBmQicq()&&checkBmWork_On()&&checkBmAddr()&&checkBmContent()){
		return true;	
	}else{
		return false;	
	}
}

function checkBmUser_Name(){
	var User_Name=document.bmForm.getElementById("User_Name").value;
	if(User_Name==""||User_Name==null){
		window.alert("请填写您的姓名！");
		bmForm.User_Name.focus();
		return false;
	}else{
		return true;	
	}
}
function checkBmLevel(){
	var Level=document.bmForm.getElementById("Level").value;
	if(Level==""||Level==null){
		window.alert("请选择您的学历！");
		bmForm.Level.focus();
		return false;
	}else{
		return true;	
	}
}
function checkBmPhone(){
	var Phone=document.bmForm.getElementById("Phone").value;
	if(Phone==""||Phone==null){
		window.alert("请填写电话号码！");
		bmForm.Phone.focus();
		return false;
	}else{
		return true;	
	}
}
function checkBmQicq(){
	var Qicq=document.bmForm.getElementById("Qicq").value;
	if(Qicq==""||Qicq==null){
		window.alert("请填写QQ号码！");
		bmForm.Qicq.focus();
		return false;
	}else{
		return true;	
	}
}
function checkBmWork_On(){
	var Work_On=document.bmForm.getElementById("Work_On").value;
	if(Work_On==""||Work_On==null){
		window.alert("请填写所学专业！");
		bmForm.Work_On.focus();
		return false;
	}else{
		return true;	
	}
}
function checkBmAddr(){
	var Addr=document.bmForm.getElementById("Addr").value;
	if(Addr==""||Addr==null){
		window.alert("请填写地址！");
		bmForm.Addr.focus();
		return false;
	}else{
		return true;	
	}
}
function checkBmContent(){
	var Content=document.bmForm.getElementById("Content").value;
	if(Content==""||Content==null){
		window.alert("请填写最想了解的问题！");
		bmForm.Content.focus();
		return false;
	}else{
		return true;	
	}
}

//---------------

/*
	你问我答-我要留言
*/
function checkMsgForm(){
		//Title  Author textParam1  checkCode  Content
	if(checkMsgTitle()&&checkMsgAuthor()&&checkMsgTextParam1()&&checkMsgCheckCode()&&checkMsgContent()){
	//if(checkMsgTitle()){
		return true;	
	}else{
		return false;	
	}
}

function checkMsgTitle(){
	var title=document.msgForm.getElementById("Title").value;
	if(title==""||title==null){
		window.alert("请填写留言标题！");
		msgForm.Title.focus();
		return false;
	}else{
		return true;	
	}
}
function checkMsgAuthor(){
	var Author=document.msgForm.getElementById("Author").value;
	if(Author==""||Author==null){
		window.alert("请填写您的称呼！");
		msgForm.Author.focus();
		return false;
	}else{
		return true;	
	}
}
function checkMsgTextParam1(){
	var textParam1=document.msgForm.getElementById("textParam1").value;
	if(textParam1==""||textParam1==null){
		window.alert("请填写您的联系方式！");
		msgForm.textParam1.focus();
		return false;
	}else{
		return true;	
	}
}
function checkMsgCheckCode(){
	var checkCode=document.msgForm.getElementById("checkCode").value;
	if(checkCode==""||checkCode==null){
		window.alert("请填写验证码！");
		msgForm.checkCode.focus();
		return false;
	}else{
		return true;	
	}
}
function checkMsgContent(){
	var Content=document.msgForm.getElementById("Content").value;
	if(Content==""||Content==null){
		window.alert("请填写留言内容！");
		msgForm.Content.focus();
		return false;
	}else{
		return true;	
	}
}

//---------------
