⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 checkpaylist.js

📁 1st-pay.rar 在线支付程序
💻 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("客户联系电话必须填写!");
    theForm.tel.focus();
    return (false);
  }

if (theForm.address.value == "")
  {
    alert("客户联系地址必须填写!");
    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>")

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -