﻿function AcceptDigits(objtextbox)
{
    var exp = /[^\d]/g;
    objtextbox.value = objtextbox.value.replace(exp,'');
}

function AcceptEnglishOnly(objtextbox)
{
    var exp = /[^\w\s,-]/g;
    objtextbox.value = objtextbox.value.replace(exp,'');
}  

function newwindowpass(x)
{
    var nw;
    if (x==1){
        nw=window.open("http://www.domainthenet.com/hebrewSite/forgot.asp","forgot","HEIGHT=300,WIDTH=300");
    }
    else if (x==2){
        nw=window.open("http://www.domainthenet.com/forgot.asp","forgot","HEIGHT=300,WIDTH=300");
    }
    else{
        nw=window.open("https://www.domainthenet.com/hebrewSite/ssl/account/forgotDomain.asp","forgot","HEIGHT=300,WIDTH=300");
    }
}

function retriveUserpass(x){
    var nw;
    if (x==1){
        nw=window.open("https://www.domainthenet.com/hebrewSite/ssl/account/forgetUser.asp","forgetUser","HEIGHT=500,WIDTH=500");
    }
    else if (x==2){
        nw=window.open("https://www.domainthenet.com/ssl/account/forgetUser.asp","forgetUser","HEIGHT=500,WIDTH=500");
    }
}

function EnabelDisableButton(DisableThis,CurrentButton){
    CurrentButton.disabled=DisableThis;
    return true;
}