You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

253 lines
6.7 KiB

//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD>
function checkreport()
{
if(document.form1.address.value.replace(/\s+$|^\s+/g,"").length<=0)
{
alert("<22><><EFBFBD><EFBFBD>д<EFBFBD><D0B4><EFBFBD><EFBFBD>ҳ<EFBFBD><D2B3><EFBFBD><EFBFBD>ַ<EFBFBD><D6B7>");
document.form1.address.focus();
return false;
}
if(document.form1.resouce.value.replace(/\s+$|^\s+/g,"").length<=0)
{
alert("<22><><EFBFBD><EFBFBD>д<EFBFBD><D0B4><EFBFBD><EFBFBD>ԭ<EFBFBD><D4AD><EFBFBD><EFBFBD>");
document.form1.resouce.focus();
return false;
}
if(document.form1.resouce.value.replace(/\s+$|^\s+/g,"").length>200)
{
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>200<30><30><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڣ<EFBFBD>");
document.form1.resouce.focus();
return false;
}
form1.method.value="add";
form1.submit();
}
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
function checklink()
{
if(document.form1.linkname.value.replace(/\s+$|^\s+/g,"").length<=0)
{
alert("<22><><EFBFBD><EFBFBD>д<EFBFBD><D0B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƣ<EFBFBD>");
document.form1.linkname.focus();
return false;
}
if(document.form1.url.value.replace(/\s+$|^\s+/g,"").length<=0)
{
alert("<22><><EFBFBD><EFBFBD>д<EFBFBD><D0B4><EFBFBD>ӵ<EFBFBD>ַ<EFBFBD><D6B7>");
document.form1.url.focus();
return false;
}
if(document.form1.logo.value.replace(/\s+$|^\s+/g,"").length<=0)
{
alert("<22><><EFBFBD><EFBFBD>дlogo<67><6F>ַ<EFBFBD><D6B7>");
document.form1.logo.focus();
return false;
}
if(document.form1.intro.value.replace(/\s+$|^\s+/g,"").length<=0)
{
alert("<22><><EFBFBD><EFBFBD>д<EFBFBD><D0B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
document.form1.intro.focus();
return false;
}
if(document.form1.intro.value.replace(/\s+$|^\s+/g,"").length>200)
{
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>200<30><30><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڣ<EFBFBD>");
document.form1.intro.focus();
return false;
}
form1.method.value="addlink";
form1.submit();
}
//<2F><>֤<EFBFBD><D6A4><EFBFBD>԰<EFBFBD><D4B0><EFBFBD><EFBFBD><EFBFBD>
function checkGUEST()
{
if(document.form1.content.value.replace(/\s+$|^\s+/g,"").length<=0)
{
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݣ<EFBFBD>");
document.form1.content.focus();
return false;
}
if(document.form1.content.value.replace(/\s+$|^\s+/g,"").length>200)
{
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݲ<EFBFBD><DDB2>ܳ<EFBFBD><DCB3><EFBFBD>200<30><30><EFBFBD>֣<EFBFBD>");
document.form1.content.focus();
return false;
}
}
//<2F><><EFBFBD><EFBFBD>ע<EFBFBD><D7A2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ĺϷ<C4BA><CFB7><EFBFBD> reg2.jsp
function checkREG() {
if (document.regbb.username.value.replace(/\s+$|^\s+/g,"").length<=0) {
alert("\<5C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD><C3BB><EFBFBD><EFBFBD><EFBFBD>");
document.regbb.username.focus();
return false;
}
if(document.regbb.username.value.replace(/\s+$|^\s+/g,"").length<4||document.regbb.username.value.replace(/\s+$|^\s+/g,"").length>10) {
alert("\<5C>û<EFBFBD><C3BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>4-10λ֮<CEBB>䣡");
document.regbb.username.focus();
return false;
}
if (document.regbb.password.value.replace(/\s+$|^\s+/g,"").length<=0) {
alert("\<5C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>룡");
document.regbb.password.focus();
return false;
}
if(document.regbb.password.value.replace(/\s+$|^\s+/g,"").length<6||document.regbb.password.value.replace(/\s+$|^\s+/g,"").length>16) {
alert("\<5C><><EFBFBD><EFBFBD><EBB3A4><EFBFBD><EFBFBD>6-16λ֮<CEBB>䣡");
document.regbb.password.focus();
return false;
}
if (document.regbb.reg_pwd2.value == "") {
alert("\<5C><><EFBFBD>ٴ<EFBFBD><D9B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>룡");
document.regbb.reg_pwd2.focus();
return false;
}
if (document.regbb.password.value != document.regbb.reg_pwd2.value) {
alert("\<5C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>벻ͬ<EBB2BB><CDAC>");
document.regbb.reg_pwd2.focus();
return false;
}
regbb.method.value="reg2";
regbb.submit();
}
function sameREGcheck()
{
if (document.regbb.username.value.replace(/\s+$|^\s+/g,"").length<=0) {
alert("\<5C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD><C3BB><EFBFBD><EFBFBD><EFBFBD>");
document.regbb.username.focus();
return false;
}
else if(document.regbb.username.value.replace(/\s+$|^\s+/g,"").length<4||document.regbb.username.value.replace(/\s+$|^\s+/g,"").length>10) {
alert("\<5C>û<EFBFBD><C3BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>4-10λ֮<CEBB>䣡");
document.regbb.username.focus();
return false;
}
regbb.method.value="checksame";
regbb.submit();
}
//<2F><><EFBFBD>˻<EFBFBD>Աע<D4B1><D7A2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>֤
function checkpersonreg()
{
if (document.regform.realname.value.replace(/\s+$|^\s+/g,"").length<=0)
{
alert("\<5C><><EFBFBD><EFBFBD>д<EFBFBD><D0B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʵ<EFBFBD><CAB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
document.regform.realname.focus();
return false;
}
if (document.regform.sheng.value.replace(/\s+$|^\s+/g,"").length<=0)
{
alert("\<5C><>ѡ<EFBFBD><D1A1>ʡ<EFBFBD><CAA1>");
document.regform.sheng.focus();
return false;
}
if (document.regform.city.value.replace(/\s+$|^\s+/g,"").length<=0)
{
alert("\<5C><>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD><EFBFBD>ڳ<EFBFBD><DAB3>У<EFBFBD>");
document.regform.city.focus();
return false;
}
if (document.regform.telphone.value.replace(/\s+$|^\s+/g,"").length<7)
{
alert("\<5C><><EFBFBD><EFBFBD>ȷ<EFBFBD><C8B7>д<EFBFBD><D0B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϵ<EFBFBD><EFBFBD><E7BBB0><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>λ<EFBFBD><CEBB><EFBFBD>ϣ<EFBFBD>ֻ<EFBFBD><D6BB>Ϊ<EFBFBD><CEAA><EFBFBD>֣<EFBFBD>");
document.regform.telphone.focus();
return false;
}
if (document.regform.email.value.replace(/\s+$|^\s+/g,"").length<=0)
{
alert("\<5C><><EFBFBD><EFBFBD>д<EFBFBD><D0B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>䣡");
document.regform.email.focus();
return false;
}
if(!/(\S)+[@]{1}(\S)+[.]{1}(\w)+/.test(document.regform.email.value))
{
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʽ<EFBFBD><CABD>ȷ<EFBFBD><C8B7> e-mail <20><>ַ<EFBFBD><D6B7>");
document.regform.email.focus();
return false;
}
if (document.regform.question.value.replace(/\s+$|^\s+/g,"").length<=0)
{
alert("\<5C><><EFBFBD><EFBFBD>д<EFBFBD><D0B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʾ<EFBFBD><CABE><EFBFBD>⣡");
document.regform.question.focus();
return false;
}
if (document.regform.answer.value.replace(/\s+$|^\s+/g,"").length<=0)
{
alert("\<5C><><EFBFBD><EFBFBD>д<EFBFBD><D0B4><EFBFBD><EFBFBD><EBB1A3><EFBFBD>𰸣<EFBFBD>");
document.regform.answer.focus();
return false;
}
if (document.regform.question.value==document.regform.answer.value)
{
alert("\<5C><><EFBFBD><EFBFBD><EBB1A3><EFBFBD><EFBFBD>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD><EFBFBD>ʹ𰸲<CDB4><F0B0B8B2><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD>");
document.regform.answer.focus();
return false;
}
regform.submit();
}
//<2F><>֤<EFBFBD><D6A4>ҵ<EFBFBD><D2B5>Աע<D4B1><D7A2><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
function checkcoreg()
{
if (document.reg.coname.value.replace(/\s+$|^\s+/g,"").length<=0)
{
alert("\<5C><><EFBFBD><EFBFBD>д<EFBFBD><D0B4>˾<EFBFBD><CBBE><EFBFBD>ƣ<EFBFBD>");
document.reg.coname.focus();
return false;
}
if (document.reg.address.value.replace(/\s+$|^\s+/g,"").length<=0)
{
alert("\<5C><><EFBFBD><EFBFBD>д<EFBFBD><D0B4>˾<EFBFBD><CBBE>ַ<EFBFBD><D6B7>");
document.reg.address.focus();
return false;
}
if (document.reg.postnum.value.replace(/\s+$|^\s+/g,"").length>0&&document.reg.postnum.value.replace(/\s+$|^\s+/g,"").length!=6)
{
alert("\<5C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϊ<EFBFBD><CEAA>λ<EFBFBD><CEBB><EFBFBD>֣<EFBFBD>");
document.reg.postnum.focus();
return false;
}
if (document.reg.telphone.value.replace(/\s+$|^\s+/g,"").length<7)
{
alert("\<5C><><EFBFBD><EFBFBD>ȷ<EFBFBD><C8B7>д<EFBFBD><D0B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϵ<EFBFBD><EFBFBD><E7BBB0><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>λ<EFBFBD><CEBB><EFBFBD>ϣ<EFBFBD>ֻ<EFBFBD><D6BB>Ϊ<EFBFBD><CEAA><EFBFBD>֣<EFBFBD>");
document.reg.telphone.focus();
return false;
}
if (document.reg.email.value.replace(/\s+$|^\s+/g,"").length<=0)
{
alert("\<5C><><EFBFBD><EFBFBD>д<EFBFBD><D0B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>䣡");
document.reg.email.focus();
return false;
}
if(!/(\S)+[@]{1}(\S)+[.]{1}(\w)+/.test(document.reg.email.value))
{
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʽ<EFBFBD><CABD>ȷ<EFBFBD><C8B7> e-mail <20><>ַ<EFBFBD><D6B7>");
document.reg.email.focus();
return false;
}
if (document.reg.question.value.replace(/\s+$|^\s+/g,"").length<=0)
{
alert("\<5C><><EFBFBD><EFBFBD>д<EFBFBD><D0B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʾ<EFBFBD><CABE><EFBFBD>⣡");
document.reg.question.focus();
return false;
}
if (document.reg.answer.value.replace(/\s+$|^\s+/g,"").length<=0)
{
alert("\<5C><><EFBFBD><EFBFBD>д<EFBFBD><D0B4><EFBFBD><EFBFBD><EBB1A3><EFBFBD>𰸣<EFBFBD>");
document.reg.answer.focus();
return false;
}
if (document.reg.question.value==document.reg.answer.value)
{
alert("\<5C><><EFBFBD><EFBFBD><EBB1A3><EFBFBD><EFBFBD>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD><EFBFBD>ʹ𰸲<CDB4><F0B0B8B2><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD>");
document.reg.answer.focus();
return false;
}
if (document.reg.intro.value.replace(/\s+$|^\s+/g,"").length>500)
{
alert("\<5C><>˾<EFBFBD><CBBE><EFBFBD><EFBFBD><EFBFBD><EFBFBD>500<30><30><EFBFBD><EFBFBD><EFBFBD>ڣ<EFBFBD>");
document.reg.intro.focus();
return false;
}
reg.submit();
}