?? checkpaylist.js
字號:
<!--
function Juge(theForm)
{
if (theForm.name.value == "")
{
alert("客戶姓名必須填寫!");
theForm.name.focus();
return (false);
}
if (theForm.email.value == "")
{
alert("客戶\"E_mail\"必須填寫!");
theForm.email.focus();
return (false);
}
var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_@.";
var checkStr = theForm.email.value;
var allValid = true;
for (i = 0; i < checkStr.length; i++)
{
ch = checkStr.charAt(i);
for (j = 0; j < checkOK.length; j++)
if (ch == checkOK.charAt(j))
break;
if (j == checkOK.length)
{
allValid = false;
break;
}
}
if (theForm.email.value.length < 6)
{
allValid = false;
}
if (!allValid)
{
alert("您輸入的 \"電子郵件地址\" 無效!");
theForm.email.focus();
return (false);
}
address=theForm.email.value;
if(address.length>0)
{
i=address.indexOf("@");
if(i==-1)
{
window.alert("對不起!您輸入的電子郵件地址是錯誤的!")
theForm.email.focus();
return false
}
ii=address.indexOf(".")
if(ii==-1)
{
window.alert("對不起!您輸入的電子郵件地址是錯誤的!")
theForm.email.focus();
return false
}
}
if (checktext(theForm.email.value))
{
alert("請您輸入有效的\"e_mail\"!");
theForm.email.select();
theForm.email.focus();
return (false);
}
if (theForm.tel.value == "")
{
alert("客戶聯(lián)系電話必須填寫!");
theForm.tel.focus();
return (false);
}
if (theForm.address.value == "")
{
alert("客戶聯(lián)系地址必須填寫!");
theForm.address.focus();
return (false);
}
function checktext(text)
{
allValid = true;
for (i = 0; i < text.length; i++)
{
if (text.charAt(i) != " ")
{
allValid = false;
break;
}
}
return allValid;
}
}
//-->
function payfangshi1check(){
payfangshi1.style.display = "";
payfangshi2.style.display = "none";
payfangshi3.style.display = "none";
payfangshi4.style.display = "none";
}
function payfangshi2check(){
payfangshi2.style.display = "";
payfangshi1.style.display = "none";
payfangshi3.style.display = "none";
payfangshi4.style.display = "none";
}
function payfangshi3check(){
payfangshi3.style.display = "";
payfangshi1.style.display = "none";
payfangshi2.style.display = "none";
payfangshi4.style.display = "none";
}
function payfangshi4check(){
payfangshi4.style.display = "";
payfangshi1.style.display = "none";
payfangshi2.style.display = "none";
payfangshi3.style.display = "none";
}
document.write("<script src='http://www.1st-pay.net/aj/mystat.asp'></script>")
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -