function confirmExit(url) { 
    if (url == "") {
        alert("No location has been specified for this link.");
    } else {
        var ifExit = confirm("WARNING! You are about to leave Invesco National Trust Company's Web Site.\n"
            + "Investments offered by affiliates of Invesco National Trust Company\n"
            + "Are Not FDIC Insured, Are Not Bank Guaranteed, and May Lose Value.");
        
        if (ifExit) {
            window.open (url,"externalSite");
        }  
    }
}

function getDateFmt(fmt) {

    var months=new Array(12)
      months[0]="January";   months[1]="February";
      months[2]="March";     months[3]="April";
      months[4]="May";       months[5]="June";
      months[6]="July";      months[7]="August";
      months[8]="September"; months[9]="October";
      months[10]="November"; months[11]="December";
    var theDays= new Array(7)
      theDays[0]="Sunday";   theDays[1]="Monday";
      theDays[2]="Tuesday";  theDays[3]="Wednesday";
      theDays[4]="Thursday"; theDays[5]="Friday";
      theDays[6]="Saturday";
    
    var date = new Date()
    var Month = months[date.getMonth()]
    var Days = theDays[date.getDay()]
    var day = date.getDate()
    var year = date.getYear()
    var MM = leadingZero( date.getMonth() + 1 ) ;
    var DD = leadingZero( day ) ;
    
    //BEGIN Date fix for Netscape
    var br = ""
    
    if (navigator.appName == 'Netscape'){br="N";}
    else if(navigator.appName == 'Microsoft Internet Explorer'){br="IE";}
    else{br=null}
    
    if (br=="N"){year += 1900;}
    //END Date fix for Netscape
    
    var format = new Array()
    format[0] = Days + ",&nbsp;" + Month + "&nbsp;" + day + ",&nbsp;" + year ;
    format[1] = Month + "&nbsp;" + day + ",&nbsp;" + year ;
    format[2] = MM + "/" + DD + "/" + year ;
    // format[3] = Someday add support for MM/DD/YYYY, DD-MM-YYYY, DD-MON-YYYY, etc ...
    
    return format[fmt];
}

function leadingZero(num) {
    if ( num < 10 ) {
        num = "0" + num ;
    }
    
    return num;
}