function doSubmit(FormObj)
{
if ($.trim($("#UserName").val()) == '') {
$.weeboxs.open("
请输入姓名!", {boxid:'tsName',title:'',width:300,height:50,type:"custombox",timeout:1,modal:false,showOk:false,showCancel:false,onclose:function(){$("#UserName").focus();}});
return false;
}
if ($.trim($("#CompanyName").val()) == '') {
$.weeboxs.open("
请输入公司名称!", {boxid:'tsName',title:'',width:300,height:50,type:"custombox",timeout:1,modal:false,showOk:false,showCancel:false,onclose:function(){$("#CompanyName").focus();}});
return false;
}
if ($.trim($("#Email").val()) == '') {
$.weeboxs.open("
请输入邮箱!", {boxid:'tsName',title:'',width:300,height:50,type:"custombox",timeout:1,modal:false,showOk:false,showCancel:false,onclose:function(){$("#Email").focus();}});
return false;
}
if ($.trim($("#Tel").val()) == '') {
$.weeboxs.open("
请输入联系方式!", {boxid:'tsName',title:'',width:300,height:50,type:"custombox",timeout:1,modal:false,showOk:false,showCancel:false,onclose:function(){$("#Tel").focus();}});
return false;
}
if ($.trim($("#Content").val()) == '') {
$.weeboxs.open("
请输入留言内容!", {boxid:'tsName',title:'',width:300,height:50,type:"custombox",timeout:1,modal:false,showOk:false,showCancel:false,onclose:function(){$("#Content").focus();}});
return false;
}
FormMessage.submit();
}