function win1() {
    window.open("ProcessFeeDetail_v1.asp","PopupDetail","location=no,menubar=no,width=980,height=550,toolbar=no,scrollbars=yes,titlebar=no,copyhistory=no");
}

function win2() {
    window.open("ProcessFeeDetail_v2.asp","PopupDetail","location=no,menubar=no,width=980,height=550,toolbar=no,scrollbars=yes,titlebar=no,copyhistory=no");
}

function win3() {
    window.open("ProcessFeeDetail_v3.asp","PopupDetail","location=no,menubar=no,width=980,height=550,toolbar=no,scrollbars=yes,titlebar=no,copyhistory=no");
}

function win_ctsum() {
    window.open("CardTypeSummary.asp","PopupDetail","location=no,menubar=no,width=980,height=550,toolbar=no,scrollbars=yes,titlebar=no,copyhistory=no");
}

function win4() {
    window.open("pressrelease.html","press","location=no,menubar=no,width=630,height=550,toolbar=no,scrollbars=yes,titlebar=no,copyhistory=no");
}

function win5() {
    window.open("banks/demo.asp","bank","location=no,menubar=no,width=600,height=600,toolbar=no,scrollbars=yes,titlebar=no,copyhistory=no");
}

function win6() {
    window.open("pcinotice.html","pci","location=no,menubar=no,width=400,height=300,toolbar=no,scrollbars=yes,titlebar=no,copyhistory=no");
}

//Function used to redirect to https if not in either dev environment
function environmentCheck() {

    //alert("Environment Check");

    if (location.href.search("wrowan2") == -1 && location.href.search("development.") == -1) {
        //alert(location.href);
        if (location.href.search("https") == -1) {
            var str;
            str = location.href;
            str = str.replace("http", "https");

            //alert(str);
            window.location = str;
        }
    }

}

function setCookie(c_name,value,expiredays)
{
    var exdate=new Date();
    exdate.setDate(exdate.getDate()+expiredays);
    document.cookie=c_name+ "=" +escape(value)+
    ((expiredays==null) ? "" : ";expires="+exdate.toGMTString());
}

function getCookie(c_name)
{
    if (document.cookie.length>0)
    {
        c_start=document.cookie.indexOf(c_name + "=");
        if (c_start!=-1)
        {
            c_start=c_start + c_name.length+1;
            c_end=document.cookie.indexOf(";",c_start);
        if (c_end==-1) c_end=document.cookie.length;
            return unescape(document.cookie.substring(c_start,c_end));
        }
    }
    return "";
}

function checkStatementCookie()
{
    showStatement=getCookie('showStatement');
    if (showStatement!=null && showStatement!=""){
        //Then its set and we don't show the statement 
        
    }

}

//Scripts used by Dreamweaver  
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
