function zyouke(){
ztxt="昵称:";
ztxt=ztxt+" 返回登录";
ztxt=ztxt+"";
document.getelementbyid("dgbookline2").innerhtml=ztxt;
}
function zlogin(){
ztxt="登录名<邮箱>: ";
ztxt=ztxt+"密码: ";
ztxt=ztxt+" ";
ztxt=ztxt+" 游客发言 5秒注册";
ztxt=ztxt+"";
document.getelementbyid("dgbookline2").innerhtml=ztxt;
}
function zisemail(s){
return s.search(/^\s*[\w\~\-\.]+\@[\w\~\-]+(\.[\w\~\-]+)+\s*$/g) >= 0;
}
function zcheckform(the_form){
if(!the_form.username){
if((the_form.gbooktextarea.value=="")||(the_form.gbooktextarea.value=="请输入您的咨询内容!")){
alert("请输入您的咨询内容!");
the_form.gbooktextarea.focus();
return false;
}
}else{
//if(!the_form.autologin){
if(!the_form.userpass){
if(the_form.username.value==""){
alert("游客昵称不能为空!");
the_form.username.focus();
return false;
}
if((the_form.gbooktextarea.value=="")||(the_form.gbooktextarea.value=="请输入您的咨询内容!")){
alert("请输入您的咨询内容!");
the_form.gbooktextarea.focus();
return false;
}
}else{
//if(!zisemail(the_form.username.value)){
if(the_form.username.value==""){
alert("登录名<邮箱>不能为空!");
the_form.username.focus();
return false;
}
if(the_form.userpass.value==""){
alert("密码不能为空!");
the_form.userpass.focus();
return false;
}
if((the_form.gbooktextarea.value=="")||(the_form.gbooktextarea.value=="请输入您的咨询内容!")){
alert("请输入您的咨询内容!");
the_form.gbooktextarea.focus();
return false;
}
}
}
the_form.submitbtn.disabled=true;
return true;
}
function post_gbooktextarea()
{
var method="http://user.maxlaw.cn/pcask/quick" ;
$("#form1").attr("action",method).submit() ;
}