// aafc.js - site functions

function fleetpopup(iden, num) {
    day = new Date();
    id = day.getTime();
    URL = "http://www.airamericafc.com/fleet_popup.php?iden=" + iden + "&num=" + num;
    eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=550,height=400,left = 112,top = 84');");
}

function photopopup(img, width, height) {
    day = new Date();
    id = day.getTime();
    URL = "http://www.airamericafc.com/_images/" + img;
    eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=" + width + ",height=" + height + ",left = 112,top = 84');");
}

function printEmail(strName, strDomain, strTLD) {
    // Escapes spam bots
    document.write('<a href=\"mailto:' + strName + '@' + strDomain + '.' + strTLD + '\">' + strName + '@' + strDomain + '.' + strTLD + '</a>');
}
