<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">//下一个验证码
function ValidateCode(imgId)
{
    var img = document.getElementById(imgId);
    img.src = "/shop/CheckCode.aspx?"  + Math.random();
}

//验证码验证
function checkcode(){
    var txtCheckcode = document.getElementById("txtCheckcode");
    if(txtCheckcode!=null){
        if(txtCheckcode.value==""){
            txtCheckcode.focus();
            alert("请输入验证码!");
            return false;
        }
    }
    return true;
}

//文本框回车
function ClickEnter(en,button) 
{    
    var e=en||event;
    var currKey=e.keyCode||e.which||e.charCode;
   if (currKey == 13) 
   {
       document.getElementById(button).focus();
   }
}

//关闭当前页面
function closediv(){
    window.opener=null;window.open('','_self');window.close();
}</pre></body></html>