function dateAddExtention(p_Interval, p_Number) {

    var thing = new String();


    //in the spirt of VB we'll make this function non-case sensitive 
    //and convert the charcters for the coder. 
    p_Interval = p_Interval.toLowerCase();

    if (isNaN(p_Number)) {

        //Only accpets numbers  
        //throws an error so that the coder can see why he effed up    
        throw "The second parameter must be a number. \n You passed: " + p_Number;
        return false;
    }

    p_Number = new Number(p_Number);
    switch (p_Interval.toLowerCase()) {
        case "yyyy":
            {// year 
                this.setFullYear(this.getFullYear() + p_Number);
                break;
            }
        case "q":
            {      // quarter 
                this.setMonth(this.getMonth() + (p_Number * 3));
                break;
            }
        case "m":
            {      // month 
                this.setMonth(this.getMonth() + p_Number);
                break;
            }
        case "y":      // day of year 
        case "d":      // day 
        case "w":
            {      // weekday 
                this.setDate(this.getDate() + p_Number);
                break;
            }
        case "ww":
            {   // week of year 
                this.setDate(this.getDate() + (p_Number * 7));
                break;
            }
        case "h":
            {      // hour 
                this.setHours(this.getHours() + p_Number);
                break;
            }
        case "n":
            {      // minute 
                this.setMinutes(this.getMinutes() + p_Number);
                break;
            }
        case "s":
            {      // second 
                this.setSeconds(this.getSeconds() + p_Number);
                break;
            }
        case "ms":
            {      // second 
                this.setMilliseconds(this.getMilliseconds() + p_Number);
                break;
            }
        default:
            {

                //throws an error so that the coder can see why he effed up and 
                //a list of elegible letters. 
                throw "The first parameter must be a string from this list: \n" +
               "yyyy, q, m, y, d, w, ww, h, n, s, or ms.  You passed: " + p_Interval;
                return false;
            }
    }
    return this;
}

//'''''''''''''''''''''''''''''''''''''''''''''''
//''''''''''''''''Flash Rotation'''''''''''''''''

function countdown_init() {
    countdown_number = 20;
    countdown_trigger();
}

function checkUM()
{
	adultcount = document.getElementById('adult').value;
	childcount = document.getElementById('child').value;
	errmsg = document.getElementById("errorbox");
	if(parseInt(adultcount) == 0 && parseInt(childcount) > 0)
	{
		   errmsg.innerHTML = 'Are you booking for an unaccompanied minor? Please note the following reminders: Children aged 7 to 12 years old may be accommodated on the flight provided that they pay the UM Handling Fee at point of booking and furnish us with the complete necessary documents. The UM form may be downloaded on this website under the \'Travel Services\' section. <br/><br/>If you intend to book for a child with an accompanying adult, please do not proceed with this booking session. Kindly restart your booking and book the child and adult together in one transaction. Thank you.'
		   errmsg.style.paddingBottom = "14px";
		   errmsg.style.height = "80px";
	}
	else
	{
		  errmsg.innerHTML = '';
		  errmsg.style.paddingBottom = "0px";
		  errmsg.style.height = "0px";
	}
}

function countdown_trigger() {
    if(countdown_number > 0) {
        countdown_number--;
        if(countdown_number > 0) {
            countdown = setTimeout('countdown_trigger()', 1000);
        }
	  else
	  {
		name = swfMovies[ctr];
		ctr++;
		loadFlash(name);
		countdown_init(name);
		
		if(ctr == 2)
		{
			ctr = 0;
		}
		
	 }
    }
}


function loadFlash(name){

    var fl = document.getElementById('adspace');

    var str = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#versi whats tgon=9,0,28,0\" width=\"120\" height=\"600\">"
        str+= "<param name=\"movie\" value=\"flash/" + name +".swf\"/>"
		str+= "<param name=\"quality\" value=\"high\"/>"
		str+= "<param name=\"menu\" value=\"false\" />"	
	    str+= "<param name=\"wmode\" value=\"transparent\" />"
		str+= "<embed src=\"flash/" + name + ".swf\" quality=\"high\" pluginspage=\"http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" menu=\"false\" width=\"120\" height=\"600\" allowScriptAccess=\"always\"></embed>"	
		str+= "</object>"
			
	if(fl)
	{
		fl.innerHTML = str;
	}
		 
	
   

}

var swfMovies = new Array();

//swfMovies[0] = "hkdl_ad"
//swfMovies[1] = "NOKIA_Highway_120x600"

swfMovies[0] = "banner1"
swfMovies[1] = "banner2"

var ctr = 0;

//'''''''''''''''''''''''''''''''''''''''''''''''
//''''''''''''''''Flash Rotation'''''''''''''''''



window.onload = multiFunc;

function multiFunc() {
    setDateFromDate();
    //populateDateMonth();
    //loadFlash("Nokia_Highway_120x600");
	loadFlash("banner2");
    countdown_init();
    try
	{
		outlineInit();
	}
	catch(e)
	{}
	

    
}

//'''''''''''''''''''''''''''''''''''''''''
// to redirect page on tab click
function gotoLink(link) {
    window.location = link;
}
//''''''''''''''''''''''''''''''''''''''''''


//''''''''''''''''''''''''''''''''''
// to redirect on a new window
function gotoNewWindow(link) {
    window.open(link);
}


//''''''''''''''''''''''''''''''''

//function setDateFromDate() {

//   // getCurDate();
//    
//    var cur_date = new Date();
//    document.form._depday.selectedIndex = cur_date.getDate() - 1;
//    document.form._depmonthyear.selectedIndex = "0";

//}

function populateDateMonth() {

    var curr_date = new Date();
    var curr_month = curr_date.getMonth();
    var curr_year = curr_date.getFullYear();
    var dateOpt1 = document.getElementById('wdfmonthyear1');
    var dateOpt2 = document.getElementById('wdfmonthyear2');
    var monthidx = 1;
    for (var idx = 0; idx < 12; idx++) {
        var month = curr_month + monthidx;
        var year = curr_year;
        monthidx += 1;
        if (month == 12) {
            curr_year += 1;
            curr_month = 0;
            monthidx = 1;
        }

        if (month.toString().length == 1) {
            month = "0" + month;
        }

        var newOpt = document.createElement("option");
        var optval = year + "-" + month;
        var opttxt = months[month - 1].substring(0, 3) + " " + year.toString().substring(2);
        newOpt.value = optval;
        newOpt.appendChild(document.createTextNode(opttxt));
        dateOpt1.appendChild(newOpt);

        var newOpt = document.createElement("option");
        var optval = year + "-" + month;
        var opttxt = months[month - 1].substring(0, 3) + " " + year.toString().substring(2);
        newOpt.value = optval;
        newOpt.appendChild(document.createTextNode(opttxt));

        dateOpt2.appendChild(newOpt);

    }


}


function setDateFromDate() {
    ///---put logic for getting the index of the current date since there will be changes on calendar display
    var optControl = document.getElementById('wdfmonthyear1');
    var cur_date = new Date();
    
  
    var thismonth = cur_date.getMonth() + 1;
    var thisyear = cur_date.getFullYear();
    var currDateidx = 0;
    
    if (thismonth.toString().length == 1) {
        var thismonth = "0" + thismonth;
    }

    var thisdate = thisyear + "-" + thismonth;
    

    for (var idx = 0; idx < optControl.options.length; idx++) {
        var text = optControl[idx].value;
        if (thisdate == optControl[idx].value) {
            currDateidx = idx;
        }
    }

     document.form._depday.selectedIndex = cur_date.getDate() - 1;
     document.form._depmonthyear.selectedIndex = currDateidx;
     document.form._retday.selectedIndex = cur_date.getDate() - 1;
     document.form._retmonthyear.selectedIndex = currDateidx;
    
    //---

//getCurDate(); //- for old logic
// document.form._depday.selectedIndex = cur_date.getDate() - 1;
// document.form._depmonthyear.selectedIndex = cur_date.getMonth();
// document.form._retday.selectedIndex = cur_date.getDate() - 1;
// document.form._retmonthyear.selectedIndex = cur_date.getMonth();
 
    
}

function setDateToDate() {
    Date.prototype.dateAdd = dateAddExtention;
    var curDate = new Date();
    var toDate = new Date();

    toDate.dateAdd("d", 1);


    document.form._retday.selectedIndex = toDate.getDate() - 2;

    if (curDate.getMonth() == toDate.getMonth())
    { document.form._retmonthyear.selectedIndex = "0"; }
    else
    { document.form._retmonthyear.selectedIndex = "1"; }
}


function enableReturnDate() {
    //Code change for date selector functionality
    document.getElementById('retdate').style.display = "block";
    //----------------------------------------------

    //Comment this original code for the new functionality
    //document.form._retmonthyear.disabled = false;
    //document.form._retday.disabled = false;
    //---------------------------------------------------
}

function disableReturnDate() {
    //Code change for date selector functionality
    document.getElementById('retdate').style.display = "none";
    //---------------------------------------------------


    //Comment this original code for the new functionality 
    //document.form._retmonthyear.disabled = true;
    //document.form._retday.disabled = true;
    //document.form._retmonthyear.value = "";
    //document.form._retday.value = "";
    //--------------------------------------------------
}

function pleaseWait() {
    if (document.getElementById('header') != null) {
        document.getElementById('header').style.visibility = "hidden";
    }
    if (document.getElementById('footer') != null) {
        document.getElementById('footer').style.visibility = "hidden";
    }
    if (navigator.userAgent.indexOf('Opera') == -1) {
        document.getElementById('main').style.visibility = "hidden";
    }
    document.getElementById('wait').style.visibility = "visible";
    document.getElementById('wait').style.display = "block";
    window.scroll(0, 0);
    if (typeof pleaseWaitSetDynamic == 'function') {
        pleaseWaitSetDynamic();
    }
    window.setTimeout("if ( document.images['PleaseWaitImage'] ) {document.images['PleaseWaitImage'].src = document.images['PleaseWaitImage'].src;}", 200);
}
function resetPleaseWait() {
    if (navigator.userAgent.indexOf('Opera') != -1) {
        document.getElementById('wait').style.visibility = "hidden";
        if (document.getElementById('header') != null) {
            document.getElementById('header').style.visibility = "visible";
        }
        if (document.getElementById('footer') != null) {
            document.getElementById('footer').style.visibility = "visible";
        }
        document.getElementById('main').style.visibility = "visible";
    }
}
// ===========================================

var routes = "ADVO{ACEBAMNLACEBAILOAZAMAILOAMNLAZAM}ABCD{AMNLAMNL}ATAC{AMNLAMNL}AZAM{ACEBADVOAMNLAMNLACEBADVO}APPS{AMNLAMNL}ATAG{AMNLAMNL}AMNL{ABCDABXUACBOACEBACGYADGTADVOAILOAKLOABCDABXUACBOACGYACEBADVOADGTAILOAKLOAPPSARXSATACATAGAZAMAPPSARXSATACATAGAZAM}ABXU{AMNLAMNL}AKLO{AMNLAMNL}ACEB{AMNLADVOAILOAZAMADVOAILOAMNLAZAM}ARXS{AMNLAMNL}AILO{ACEBADVOAMNLACEBADVOAMNL}ADGT{AMNLAMNL}ACBO{AMNLAMNL}ACGY{AMNLAMNL}";

// ============================================

var destinations = null;
storeDests();
function storeDests() {
    if (destinations != null) return;
    destinations = new Array();
    var id = 1;
    var fld = document.getElementById('wdfdest' + id);
    if (fld == null) fld = document.getElementById('wdfdest' + (++id));
    while (fld != null) {
        destinations[id] = new Array();
        for (var i = 0; i < fld.options.length; i++) {
            destinations[id][i * 2] = fld.options[i].text;
            destinations[id][i * 2 + 1] = fld.options[i].value;
        }
        fld = document.getElementById('wdfdest' + (++id));
        if (fld == null) fld = document.getElementById('wdfdest' + (++id));
    }
}

repopulateDests();
function repopulateDests() {
    var id = 1;
    var fld = document.getElementById('wdfdest' + id);
    if (fld == null) fld = document.getElementById('wdfdest' + (++id));
    while (fld != null) {
        updateDests(id, fld.value);
        fld = document.getElementById('wdfdest' + (++id));
        if (fld == null) fld = document.getElementById('wdfdest' + (++id));
    }
}

function addDests(id, fld, filter, selCode) {

    fld.options.length = 0;
    for (var i = 0; i < destinations[id].length; ) {
        var text = destinations[id][i++];
        var value = destinations[id][i++];
        if (value.length == 0 || filter == null || filter.indexOf(value) >= 0) {
            fld.options[fld.options.length] = new Option(text, value, false, (value == selCode));
        }
    }
    for (var i = 0; i < fld.options.length; i++) {
        if (fld.options[i].value == selCode) {
            fld.selectedIndex = i;
        }
    }
}

function updateDests(id, selDest) {
    var ofld = document.getElementById('wdforigin' + id);
    var fld = document.getElementById('wdfdest' + id);
    if (routes == null || ofld == null || fld == null || destinations[id] == null) return;
    if (ofld.value.length == 0) {
        addDests(id, fld, null, selDest);
    } else {
        var matched = '';
        var selOrig = ofld.value;
        selOrig = selOrig.substring(0, 1) + selOrig.substring(selOrig.length - 3) + "{";
        var pos = routes.indexOf(selOrig);
        if (pos >= 0) {
            pos = pos + 5;
            var end = routes.indexOf("}", pos);
            if (end >= 0) {
                var dests = routes.substring(pos, end);
                for (var i = 0; i < dests.length; i += 4) {
                    if (dests.charAt(i) == 'A') {
                        matched += '#Airport.' + dests.substring(i + 1, i + 4);
                    } else if (dests.charAt(i) == 'C') {
                        matched += '#City.' + dests.substring(i + 1, i + 4);
                    } else if (dests.charAt(i) == 'R') {
                        matched += '#RailStation.' + dests.substring(i + 1, i + 4);
                    }
                }
            }
        }
        if (selDest == '') {
            if (matched.lastIndexOf('#') == 0) selDest = matched.substring(1);
            else selDest = fld.value;
        }
        addDests(id, fld, matched, selDest);
    }
}

function originChanged(id) {
    updateDests(id, '');
}

function destChanged(id) {
    if (routes == null) return;
    var baseOrig = document.getElementById('wdforigin1');
    var dest = document.getElementById('wdfdest' + id).value;
    var nextOrig = document.getElementById('wdforigin' + (id + 1));
    if (nextOrig != null && nextOrig.value.length == 0 && baseOrig != null && baseOrig.value != dest) {
        nextOrig.value = dest;
        originChanged(id + 1);
    }
}

//================================================

function replaceDefaultDestinationsAndReselect() {
    var id = 1;
    var fld = document.getElementById('wdfdest' + id);
    if (fld == null) fld = document.getElementById('wdfdest' + (++id));
    while (fld != null) {
        addDests(id, fld, null, fld.value);
        fld = document.getElementById('wdfdest' + (++id));
        if (fld == null) fld = document.getElementById('wdfdest' + (++id));
    }
}

//================================================
function getField(name, id) {
    return document.getElementById(name + id);
}

function fieldExists(id) {
    return (document.getElementById('wdfday' + id) != null);
}

function setDateDate(id, dt) {
    setDate(id, dt.getFullYear(), dt.getMonth() + 1, dt.getDate());
}

function setDate(id, year, month, day) {
    var daySel = getField('wdfday', id);
    var mySel = getField('wdfmonthyear', id);
    if (day == 0) {
        setField(daySel, "");
    } else {
        setField(daySel, leadingZero(day));
    }
    if (year == 0 || month == 0) {
        setField(mySel, "");
    } else {
        setField(mySel, leadingZero(year + "-" + leadingZero(month)));
    }
}

function leadingZero(value) {
    if (value < 10) value = "0" + value;
    return "" + value;
}

function setField(fld, val) {
    for (var i = 0; i < fld.options.length; i++) {
        if (fld.options[i].value == val) {
            fld.selectedIndex = i;
            break;
        }
    }
}

function currentDateArray() {
    var dt = new Date();
    return new Array(dt.getFullYear(), dt.getMonth() + 1, dt.getDate());
}

function previousValidDateArray(id) {
    if (fieldExists(id - 1)) {
        var dt = getValidatedDateArray(id - 1);
        if (isValidDate(dt)) {
            return dt;
        }
    }
    return currentDateArray();
}

function getValidatedDateArray(id) {
    var array = getDateArray(id);
    var year = parseInt(array[0], 10);
    var month = parseInt(array[1], 10);
    var day = parseInt(array[2], 10);
    if (isNaN(year)) year = 0;
    if (isNaN(month)) month = 0;
    if (isNaN(day)) day = 0;
    return new Array(year, month, day);
}

function getDateArray(id) {
    var day = getField('wdfday', id).value;
    var my = getField('wdfmonthyear', id).value + '       ';
    var month = my.substring(5, 7);
    var year = my.substring(0, 4);
    return new Array(year, month, day);
}

function isValidDate(array) {
    return (array[2] != 0 && array[1] != 0 && array[0] != 0);
}

function bumpMonth(id) {
    var thisArray = getValidatedDateArray(id);
    var prevArray = previousValidDateArray(id);
    if (thisArray[1] <= prevArray[1]) {
        thisArray[1] = prevArray[1];
        if (thisArray[2] < prevArray[2]) {
            thisArray[1] = prevArray[1] + 1;
            if (thisArray[1] == 13) {
                thisArray[1] = 1;
                thisArray[0]++;
            }
        }
    }
    setDate(id, thisArray[0], thisArray[1], thisArray[2]);
}

function bumpNext(id, daysGap) {
    if (fieldExists(id + 1)) {
        var thisArray = getValidatedDateArray(id);
        var nextArray = getValidatedDateArray(id + 1);
        if (isValidDate(nextArray)) {
            if ((thisArray[0] > nextArray[0]) ||
       (thisArray[0] == nextArray[0] && thisArray[1] > nextArray[1]) ||
       (thisArray[0] == nextArray[0] && thisArray[1] == nextArray[1] && thisArray[2] > nextArray[2])) {
                var dt = new Date(thisArray[0], thisArray[1] - 1, thisArray[2] + daysGap, 0, 0, 0, 1);
                setDateDate(id + 1, dt);
            }
        }
    }
}

function updateDateState() {
    if (self.updateRadioState) updateRadioState();
    if (self.updateDowState) updateDowState();
    if (self.updateTimeState) updateTimeState();
}

function dayChanged(id, daysGap) {
    var day = getField('wdfday', id).value;
    if (day.length == 0) {
        setField(getField('wdfmonthyear', id), "");
    } else {
        var my = getField('wdfmonthyear', id).value;
        if (my.length == 0 && fieldExists(id - 1)) {
            var prevMY = getField('wdfmonthyear', id - 1).value;
            setField(getField('wdfmonthyear', id), prevMY);
        }
        bumpMonth(id);
        bumpNext(id, daysGap);
    }
    updateDateState();

}

function myChanged(id, daysGap) {
    var my = getField('wdfmonthyear', id).value;
    if (my.length == 0) {
        setField(getField('wdfday', id), "");
    } else {
        var day = getField('wdfday', id).value;
        if (day.length == 0) {
            var prev = previousValidDateArray(id);
            var dt = getValidatedDateArray(id);
            if (dt[1] == prev[1]) {
                setDate(id, dt[0], dt[1], prev[2]);
            } else {
                setDate(id, dt[0], dt[1], 1);
            }
        }
        bumpNext(id, daysGap);
    }
    updateDateState();
}

// =================================================
function showCal(id) {
    activeID = id;
    var array = getValidatedDateArray(id);
    if (!isValidDate(array) && id > 1) {
        if (fieldExists(id - 1)) {
            array = getValidatedDateArray(id - 1);
        }
    }
    if (!isValidDate(array)) {
        var now = new Date();
        array = new Array(now.getFullYear(), now.getMonth() + 1, now.getDate());
    }
    var dt = new Date(array[0], array[1] - 1, array[2], 0, 0, 0, 1);
    while (dt.getDate() < array[2] && array[2] >= 1) {
        dt = new Date(array[0], array[1] - 1, --array[2], 0, 0, 0, 1);
    }
    genCal(dt);
}
var activeID = 0;
function selectDate(year, month, day) {
    setDate(activeID, year, month, day);
    updateDateState();
}
months = new Array;
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 days = new Array;
days[0] = 'Mon';
days[1] = 'Tue';
days[2] = 'Wed';
days[3] = 'Thu';
days[4] = 'Fri';
days[5] = 'Sat';
days[6] = 'Sun';
var firstDayOfWeekOffset = 1;

function numDays(y, m) {
    return (m == 3 || m == 5 || m == 8 || m == 10) ? 30 : ((m == 1) && (((y % 4 == 0) && y % 100 != 0) || y % 400 == 0)) ? 29 : (m == 1) ? 28 : 31;
}
function genCal(inputDate) {
    var selectedDate = new Date(inputDate.getFullYear(), inputDate.getMonth(), inputDate.getDate());
    inputDate.setDate(1);
    var pastMonthsCount = 1;
    var futureMonthsCount = 1;
    inputDate.setMonth(inputDate.getMonth() - pastMonthsCount);
    var totalCalendars = 1 + pastMonthsCount + futureMonthsCount;
    genCalDoHtmlAndPopup(inputDate, selectedDate, totalCalendars);
}
function getValues(sourceString) {
    sourceString = sourceString.replace(/[^0-9|-]/g, ",").replace(/[,]+/g, ",").replace(/,$/, "").replace(/^,/, "");
    return sourceString.split(",");
}
function getArgument(theArray, index) {
    if (theArray.length >= index) {
        return parseInt(theArray[index], 10);
    }
    return 0;
}
function dateAdd(theDate, Years, Months, Days) {
    theDate.setFullYear(theDate.getFullYear() + Years);
    theDate.setMonth(theDate.getMonth() + Months + 1);
    theDate.setDate(theDate.getDate() + Days);
    theDate.setHours(0);
    theDate.setMinutes(0);
    theDate.setSeconds(0);
    theDate.setMilliseconds(1);
    return theDate;
}
function genCalDoHtmlAndPopup(inputDate, selectedDate, totalCalendars) {
    var todayDate = new Date();
    todayDate = new Date(todayDate.getFullYear(), (todayDate.getMonth()), todayDate.getDate(), 0, 0, 0, 1);
    var selectableDaysOffsetsArrayStart = getValues("0 Years, 0 Months, 0 Days");
    var selectableDaysOffsetsArrayEnd = getValues("1 Year, 0 Months, -1 Day");
    var days = getArgument(selectableDaysOffsetsArrayStart, 2);
    var months = getArgument(selectableDaysOffsetsArrayStart, 1);
    var years = getArgument(selectableDaysOffsetsArrayStart, 0);
    var selectableDaysStartDate = dateAdd(new Date(), years, months, days);
    days = getArgument(selectableDaysOffsetsArrayEnd, 2);
    months = getArgument(selectableDaysOffsetsArrayEnd, 1);
    years = getArgument(selectableDaysOffsetsArrayEnd, 0);
    var selectableDaysEndDate = dateAdd(new Date(), years, months, days);
    var out_start = '<' + '!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">' + '\n' + '<' + 'html>' + '\n' + '<' + 'head>' + '\n' + '<' + 'title>Calendar<' + '/title>' + '\n' + '<' + 'meta http-equiv="content-type" content="text/html; charset=UTF-8" />' + '\n' + '<' + 'style type="text/css">' + '\n' + '<' + '!' + '-' + '-' + '\n' + '@import url(styles/calendar.css);\n' + '@import url(css/cebu.css);\n' + '@import url(itd/css/configured.css);\n' + '-' + '->' + '\n' + '<' + '/style>' + '\n' + '<' + '/head>' + '\n'
+ '<body marginheight="0" leftmargin="0" topmargin="0" marginwidth="0">'
+ '<div class="cal">'
+ '<center>'
+ '<table border="0" cellpadding="0" cellspacing="0" class="structure">'
+ '<tr>'
+ '<td>';
    for (var i = 0; i < totalCalendars; i++) {
        var showPrevArrow = (i == 0);
        var showNextArrow = (i + 1 == totalCalendars);
        out_start += doCalForMonth(inputDate, todayDate, selectedDate, selectableDaysStartDate, selectableDaysEndDate, showPrevArrow, showNextArrow, totalCalendars);
        inputDate.setMonth(inputDate.getMonth() + 1);
    }
    out_start += '</td>'
+ '</tr>'
+ '<tr>'
+ '<td class="calfooter">'
+ '<a href="javascript:self.close()">Close this window</a>'
+ '</td>'
+ '</tr>'
+ '</table>'
+ '</center>'
+ '</div>'
+ '</body>';
    var out_end = '<' + '/html>'

    var scrollbars = "no";
    var winWidth = 222;
    if (totalCalendars > 3) {
        scrollbars = "yes";
        winWidth = 700;
    }
    else {
        winWidth = winWidth * totalCalendars;
    }
    calwin = window.open("", "calendar", "width=" + winWidth + ",height=200,resizable=no,scrollbars=" + scrollbars);
    calwin.document.write(out_start + out_end);
    calwin.document.close();
    if (window.focus) {
        calwin.focus();
    }
}
function doCalForMonth(inputDate, todayDate, selectedDate, selectableDaysStartDate, selectableDaysEndDate, showPrevArrow, showNextArrow, totalCalendars) {
    var row = 1;
    var month = inputDate.getMonth() + 1;
    var year = inputDate.getFullYear();
    var todayMonthMatch = (inputDate.getMonth() == todayDate.getMonth() && inputDate.getFullYear() == todayDate.getFullYear());
    var selectedMonthMatch = (inputDate.getMonth() == selectedDate.getMonth() && inputDate.getFullYear() == selectedDate.getFullYear());
    var out = '<table align="left" border="0" cellpadding="0" cellspacing="10" width="200" class="monthblock">';
    out += '<tr>';
    out += '<td>';
    out += '<table width="200" border="0" cellpadding="0" cellspacing="0" class="monthhead">';
    out += '<tr>';
    out += '<td class="monthprevious">';
    if (showPrevArrow) {
        out += '<a href="javascript:opener.prevCal(\'' + inputDate.toGMTString() + '\', \'' + selectedDate.toGMTString() + '\', ' + totalCalendars + ')"><img src="images/btn_back.gif" border="0" /></a>';
    } else {
        out += '&nbsp;';
    }
    out += '</td>';
    out += '<td class="monthname">' + months[month - 1] + ' ' + year + '</td>';
    out += '<td class="monthnext">';
    if (showNextArrow) {
        out += '<a href="javascript:opener.nextCal(\'' + inputDate.toGMTString() + '\', \'' + selectedDate.toGMTString() + '\', ' + totalCalendars + ')"><img src="images/btn_next.gif" border="0" /></a>';
    } else {
        out += '&nbsp;';
    }
    out += '</td>';
    out += '</tr>';
    out += '</table>';
    out += '</td>';
    out += '</tr>';
    out += '<tr>';
    out += '<td>';
    out += '<table width="200" border="0" cellpadding="0" cellspacing="0" class="monthmain">';
    out += '<tr>';
    for (d = 0; d < 7; d++) {
        out += '<td class="day dayname">' + days[d] + '</td>';
    }
    out += '</tr>';
    var offset = 7 - firstDayOfWeekOffset;
    var firstDayRelativeToSunday = new Date(year, month - 1, 1, 0, 0, 0, 0).getDay();
    offset = offset + firstDayRelativeToSunday;
    if (offset >= 7) offset = offset - 7;
    var day = 1 - offset;
    var col = 0;
    out += '<tr>';
    totalDays = numDays(year, month - 1);
    while (day <= totalDays) {
        if (day > 0) {
            if ((null == selectableDaysStartDate)
|| (null == selectableDaysEndDate)
|| ((new Date(year, month, day, 0, 0, 0, 1).getTime() >= selectableDaysStartDate.getTime())
&& (new Date(year, month, day, 0, 0, 0, 1).getTime() <= selectableDaysEndDate.getTime()))) {
                if (todayMonthMatch && day == todayDate.getDate()) {
                    out += '<td class="day dayselectable today">';
                } else if (selectedMonthMatch && day == selectedDate.getDate()) {
                    out += '<td class="day dayselectable selected">';
                } else {
                    out += '<td class="day dayselectable">';
                }
                out += '<a href="javascript:self.close();opener.selectDate(' + year + ',' + month + ',' + day + ');">';
                out += '&nbsp;&nbsp;' + day + '&nbsp;&nbsp;';
                out += '</a>';
            } else {
                if (todayMonthMatch && day == todayDate.getDate()) {
                    out += '<td class="day dayselectable today">';
                } else if (selectedMonthMatch && day == selectedDate.getDate()) {
                    out += '<td class="day dayselectable selected">';
                } else {
                    out += '<td class="day daynotselectable">';
                }
                out += day;
            }
        } else {
            out += '<td class="day dayempty">';
            out += '&nbsp;';
        }
        out += '</td>';
        col++;
        if (col > 6) {
            out += '</tr>';
            col = 0;
            row++;
        }
        if (col == 0 && day < totalDays) {
            out += '<tr>';
        }
        day++;
    }
    if (col != 0) {
        for (; col < 7; col++) {
            out += '<td class="day dayempty">&nbsp;</td>';
        }
    }
    out += '</tr>';
    if (row < 6 || (row == 6 && col == 0)) {
        out += '<tr>';
        for (col = 0; col < 7; col++) {
            out += '<td class="day dayempty">&nbsp;</td>';
        }
        out += '</tr>';
    }
    out += '</table>';
    out += '</td>';
    out += '</tr>';
    out += '</table>';
    return out;
}
function prevCal(inputDateStr, selDateStr, totalCalendars) {
    var inputDate = new Date(inputDateStr);
    var selDate = new Date(selDateStr);
    var month = inputDate.getMonth() - 1;
    if (month < 0) {
        month = month + 12;
        inputDate.setFullYear(inputDate.getFullYear() - 1);
    }
    inputDate.setMonth(month);
    genCalDoHtmlAndPopup(inputDate, selDate, totalCalendars);
}
function nextCal(inputDateStr, selDateStr, totalCalendars) {
    var inputDate = new Date(inputDateStr);
    var selDate = new Date(selDateStr);
    var month = inputDate.getMonth() + 2 - totalCalendars;
    if (month > 11) {
        month = month - 12;
        inputDate.setFullYear(inputDate.getFullYear() + 1);
    }
    inputDate.setMonth(month);
    genCalDoHtmlAndPopup(inputDate, selDate, totalCalendars);
}

// ================================================

function updateRadioState() {
    if (document.getElementById('wdfonewayradio') != null) {
        var array = getValidatedDateArray(2);
        var oneway = !isValidDate(array);
        document.getElementById('wdfonewayradio').checked = oneway;
        document.getElementById('wdfreturnradio').checked = !oneway;
    }
}

function radioChangedOneWay() {
    setDate(2, 0, 0, 0);
    updateDateState();
}

function radioChangedReturn(daysGap) {
    var out = getValidatedDateArray(1);
    if (!isValidDate(out)) {
        var dt1 = new Date();
        out[0] = dt1.getFullYear();
        out[1] = dt1.getMonth() + 1;
        out[2] = dt1.getDate();
        setDate(1, out[0], out[1], out[2]);
    }
    var dt = new Date(out[0], out[1] - 1, out[2] + daysGap, 0, 0, 0, 1);
    setDateDate(2, dt);
    updateDateState();
}

function makeArray(n) {
    this.length = n
    return this
}
monthNames = new makeArray(12)
monthNames[1] = "01/2006"
monthNames[2] = "02/2006"
monthNames[3] = "03/2006"
monthNames[4] = "04/2006"
monthNames[5] = "05/2006"
monthNames[6] = "06/2006"
monthNames[7] = "07/2006"
monthNames[8] = "08/2006"
monthNames[9] = "09/2006"
monthNames[10] = "10/2006"
monthNames[11] = "11/2006"
monthNames[12] = "12/2006"

function dateString(oneDate) {
    var theMonth = monthNames[oneDate.getMonth() + 1]
    //var theYear = oneDate.getFullYear()

    return oneDate.getDate() + "/" + theMonth
    document.form.depday.options[document.form.depday.selectedIndex].value.getDate();
    document.form.depmonyear.options[document.form.depmonyear.selectedIndex].value.theMonth;
}

// =================================================
var UNDEFINED;
var originalDestinations = new Array();
function CheckArrivalCity(destination) {
    origName = destination;
    index = eval("document.form." + destination).selectedIndex;
    destination = eval("document.form." + destination).options[index].value.substring(0, 18);
//    if (destination == 'MPH') {
//        alert('Due to airport runway restrictions, we have temporarily suspended our Caticlan operations. Although we are selling Caticlan flights for travel starting December 1, 2009 there is still a possibility that these flights will be rerouted to Kalibo. Please standby for futher announcement. Thank you.');
//    }
    var ddlArrival = document.getElementById("ddDestination");
    if (ddlArrival.value == 'KIX') {
        ftype_msg();
    }
}

function repopulateDestinations() {
    if (eval('routeMap') == UNDEFINED) return;

    var ISOcode = null;

    var dest = eval("document.form.ddDestination");
    if (UNDEFINED == originalDestinations[0]) {
        originalDestinations[0] = new Array();
        for (var j = 0; j < dest.options.length; j++) {
            originalDestinations[0][j] = dest.options[j];
        }

        ISOcode = dest[dest.selectedIndex].value;
        if (ISOcode.length > 3) ISOcode = ISOcode.substring(ISOcode.length - 3);
        populateDestinations("ddOrigin");
    }
}
function populateDestinations(origin) {
    origName = origin;
    origIndex = origin.substr(10, 1);
    destName = "ddDestination";
   
    
    var thisID = "ddDestination";
    var toDD = document.getElementById(thisID);
    while (toDD.options.length > 1) {
        toDD.remove(1);
    }
    $("#" + thisID + " optgroup").remove();
    for (var a = 0; a < document.getElementsByTagName("optgroup").length; a++) {
        if (document.getElementsByTagName("optgroup")[a].parentNode.name == thisID) {
            var childOne = document.getElementsByTagName("optgroup")[a];
            toDD.removeChild(childOne);
            a = 0;
        }
    }

   
    var dom = document.createElement("optgroup");
	dom.label = "DOMESTIC";

	
	var intl = document.createElement("optgroup");
	intl.label = "INTERNATIONAL";

    var destLocationArray = new Array();
    var origLocationArray = new Array();
    index = eval("document.form." + origin).selectedIndex;
    origin = eval("document.form." + origin).options[index].value.substring(0, 18);
   // destList = eval("document.form." + destName).options;
    destList = eval("document.form." + destName);
    destList.length = 1;
    //if (origin == 'MPH') {
    //    alert('Due to airport runway restrictions, we have temporarily suspended our Caticlan operations. Although we are selling Caticlan flights for travel starting December 1, 2009 there is still a possibility that these flights will be rerouted to Kalibo. Please standby for futher announcement. Thank you.');
    //}

    var ddlDestination = document.getElementById("ddOrigin");
    if (ddlDestination.value == 'KIX') {
        ftype_msg();
    }

    if (origin.length < 1) {
        destList.length = 1;
        return;
    }
    var n = 0;
    for (var loop = 0; loop < routeMap.length; loop++) {
        var index = routeMap[loop].indexOf(origin);
        if (index == 0) {
            var destination = routeMap[loop].substring(origin.length);
            if (destNames[destination] != UNDEFINED) {
                destLocationArray[destNames[destination]] = destination;
            }
        } else if (index == 8 || index == 11) {
            var destination = routeMap[loop].substring(0, index);
            if (destNames[destination] != UNDEFINED) {
                destLocationArray[destNames[destination]] = destination;
            }
        }
    }
    count = 0;
    for (var locationID in destLocationArray) {
        var locIdx = locationID.toString().indexOf("(");
        origLocationArray[count] = locationID;
        
        count++;
    }
    
    var intlLocs = internationalLocations.toString();
    
    origLocationArray.sort();
    count = 0;
    for (var n in origLocationArray) {
 //       destList[count + 1] = new Option(origLocationArray[count]);
 //       destList[count + 1].value = destLocationArray[origLocationArray[count]];

        if (origLocationArray[count].toString().indexOf("(") != -1) {
            var loc = origLocationArray[count].toString().substring(0, origLocationArray[count].toString().indexOf("(") - 1);
        }
        else {
            loc = origLocationArray[count];
        }
        
		
		if(intlLocs.search(loc) != -1)
		{
		    var intlOpt = document.createElement("option");
		    intlOpt.appendChild(document.createTextNode(origLocationArray[count]));
		    for (var code in destNames) {
		        if (code != undefined) {
		            if (destNames[code] == origLocationArray[count]) {
		                intlOpt.value = code;
		            }
		        }
		    }
			intl.appendChild(intlOpt);
		}  
		else
		{
		    var domOpt = document.createElement("option");
			domOpt.appendChild(document.createTextNode(origLocationArray[count]));
			for (var code in destNames) {
			    if (code != undefined) {
			        if (destNames[code] == origLocationArray[count]) {
			            domOpt.value = code;
			        }
			    }
			}
			dom.appendChild(domOpt);
		}

       count++;
    }


    try {
        var domval = dom.firstChild.nodeName;
        destList.appendChild(dom);
    }
    catch (e) {

        return true;

    }


    try {
        var intlval = intl.firstChild.nodeName;
        destList.appendChild(intl);
    }
    catch (e) {

        return true;

    }
    

    

    destList.selectedIndex = 0;
}

var internationalLocations = new Array(
"Hong Kong",
"Singapore",
"Kuala Lumpur",
"Bangkok",
"Jakarta",
"Taipei",
"Shanghai",
"Guangzhou",
"Macau",
//"Saigon",
"Ho Chi Minh",
"Kaohsiung",
"Kota Kinabalu",
"Osaka",
"Incheon",
"Busan",
"Bandar Seri Begawan",
"Beijing"
);


var originNames = new Array();
originNames["BCD"] = "Bacolod";
originNames["BXU"] = "Butuan";
originNames["PEK"] = "Beijing";
originNames["CGY"] = "Cagayan de Oro";
originNames["CEB"] = "Cebu";
originNames["CRK"] = "Clark";
originNames["CBO"] = "Cotabato";
originNames["DVO"] = "Davao";
originNames["DPL"] = "Dipolog";
originNames["DGT"] = "Dumaguete";
originNames["GES"] = "General Santos";
originNames["ILO"] = "Iloilo";
originNames["KLO"] = "Kalibo";
originNames["LAO"] = "Laoag";
originNames["LGP"] = "Legaspi";
originNames["MNL"] = "Manila";
originNames["PPS"] = "Puerto Princesa";
originNames["RXS"] = "Roxas";
originNames["TAC"] = "Tacloban";
originNames["TAG"] = "Tagbilaran";
originNames["ZAM"] = "Zamboanga";
originNames["HKG"] = "Hong Kong";
originNames["SIN"] = "Singapore";
originNames["KUL"] = "Kuala Lumpur";
originNames["BKK"] = "Bangkok";
originNames["CGK"] = "Jakarta";
originNames["TPE"] = "Taipei";
originNames["PVG"] = "Shanghai";
originNames["CAN"] = "Guangzhou (Canton)";
originNames["MFM"] = "Macau";
//originNames["SGN"] = "Saigon";
originNames["SGN"] = "Ho Chi Minh";
originNames["KHH"] = "Kaohsiung";
originNames["BKI"] = "Kota Kinabalu";
originNames["WNP"] = "Naga";
originNames["TUG"] = "Tuguegarao";
originNames["SJI"] = "San Jose (Mindoro)";
originNames["USU"] = "Coron (Busuanga)";
originNames["OZC"] = "Ozamiz";
originNames["SUG"] = "Surigao";
originNames["KIX"] = "Osaka (Kansai)";
originNames["IAO"] = "Siargao";
originNames["CYP"] = "Calbayog";
originNames["CRM"] = "Catarman";
originNames["MPH"] = "Boracay (Caticlan)";
originNames["CYZ"] = "Cauayan";
originNames["VRC"] = "Virac";
originNames["ICN"] = "Incheon";
originNames["PUS"] = "Busan";
originNames["PAG"] = "Pagadian";
originNames["BWN"] = "Bandar Seri Begawan (Brunei)";


//originNames["XMN"] = "Xiamen";
//originNames["HAN"] = "Hanoi";


var destNames = new Array();
destNames["BCD"] = "Bacolod";
destNames["BXU"] = "Butuan";
destNames["PEK"] = "Beijing";
destNames["CGY"] = "Cagayan de Oro";
destNames["CEB"] = "Cebu";
destNames["CRK"] = "Clark";
destNames["CBO"] = "Cotabato";
destNames["DVO"] = "Davao";
destNames["DPL"] = "Dipolog";
destNames["DGT"] = "Dumaguete";
destNames["GES"] = "General Santos";
destNames["ILO"] = "Iloilo";
destNames["KLO"] = "Kalibo";
destNames["LAO"] = "Laoag";
destNames["LGP"] = "Legaspi";
destNames["MNL"] = "Manila";
destNames["PPS"] = "Puerto Princesa";
destNames["RXS"] = "Roxas";
destNames["TAC"] = "Tacloban";
destNames["TAG"] = "Tagbilaran";
destNames["ZAM"] = "Zamboanga";
destNames["HKG"] = "Hong Kong";
destNames["SIN"] = "Singapore";
destNames["KUL"] = "Kuala Lumpur";
destNames["BKK"] = "Bangkok";
destNames["CGK"] = "Jakarta";
destNames["TPE"] = "Taipei";
destNames["PVG"] = "Shanghai";
destNames["CAN"] = "Guangzhou (Canton)";
destNames["MFM"] = "Macau";
//destNames["XMN"] = "Xiamen";
//destNames["HAN"] = "Hanoi";
//destNames["SGN"] = "Saigon";
destNames["SGN"] = "Ho Chi Minh";
destNames["KHH"] = "Kaohsiung";
destNames["BKI"] = "Kota Kinabalu";
destNames["WNP"] = "Naga";
destNames["TUG"] = "Tuguegarao";
destNames["SJI"] = "San Jose (Mindoro)";
destNames["USU"] = "Coron (Busuanga)";
destNames["OZC"] = "Ozamiz";
destNames["SUG"] = "Surigao";
destNames["KIX"] = "Osaka (Kansai)";
destNames["IAO"] = "Siargao";
destNames["CYP"] = "Calbayog";
destNames["MPH"] = "Boracay (Caticlan)";
destNames["CRM"] = "Catarman";
destNames["CYZ"] = "Cauayan";
destNames["VRC"] = "Virac";
destNames["ICN"] = "Incheon";
destNames["PUS"] = "Busan";
destNames["PAG"] = "Pagadian";
destNames["BWN"] = "Bandar Seri Begawan (Brunei)";

routeMap = new Array(
'BCDBXU', //START OF D2D
'BCDCBO',
'BCDCEB',
'BCDCGY',
'BCDCRK',
'BCDCRM',
'BCDCYP',
'BCDCYZ',
'BCDDGT',
'BCDDPL',
'BCDDVO',
'BCDGES',
'BCDIAO',
'BCDILO',
'BCDKLO',
'BCDLAO',
'BCDLGP',
'BCDMNL',
'BCDMPH',
'BCDOZC',
'BCDPPS',
'BCDRXS',
'BCDSJI',
'BCDSUG',
'BCDTAC',
'BCDTAG',
'BCDTUG',
'BCDUSU',
'BCDVRC',
'BCDWNP',
'BCDZAM',
'BXUDPL', // ------- additionals
'DPLBXU',
'IAOMNL',
'MNLIAO',
'SUGMNL',
'MNLSUG', // -------- additionals
'BXUBCD',
'BXUCBO',
'BXUCEB',
'BXUCGY',
'BXUCRK',
'BXUCRM',
'BXUCYP',
'BXUCYZ',
'BXUDGT',
'BXUDLP',
'BXUDVO',
'BXUGES',
'BXUIAO',
'BXUILO',
'BXUKLO',
'BXULAO',
'BXULGP',
'BXUMNL',
'BXUMPH',
'BXUOZC',
'BXUPPS',
'BXURXS',
'BXUSJI',
'BXUSUG',
'BXUTAC',
'BXUTAG',
'BXUTUG',
'BXUUSU',
'BXUVRC',
'BXUWNP',
'BXUZAM',
'CBOBCD',
'CBOBXU',
'CBOCEB',
'CBOCGY',
'CBOCRK',
'CBOCRM',
'CBOCYP',
'CBOCYZ',
'CBODGT',
'CBODPL',
'CBODVO',
'CBOGES',
'CBOIAO',
'CBOILO',
'CBOKLO',
'CBOLAO',
'CBOLGP',
'CBOMNL',
'CBOMPH',
'CBOOZC',
'CBOPPS',
'CBORXS',
'CBOSJI',
'CBOSUG',
'CBOTAC',
'CBOTAG',
'CBOTUG',
'CBOUSU',
'CBOVRC',
'CBOWNP',
'CBOZAM',
'CEBBCD',
'CEBBXU',
'CEBCBO',
'CEBCGY',
'CEBCGY',
'CEBCRM',
'CEBCYP',
'CEBCYZ',
'CEBDGT',
'CEBDPL',
'CEBDVO',
'CEBGES',
'CEBILO',
'CEBKLO',
'CEBLAO',
'CEBLGP',
'CEBMNL',
'CEBMPH',
'CEBOZC',
'CEBPPS',
'CEBRXS',
'CEBSJI',
'CEBTAC',
'CEBTAG',
'CEBTUG',
'CEBUSU',
'CEBVRC',
'CEBWNP',
'CEBZAM',
'CEBPAG',
'CGYBCD',
'CGYBXU',
'CGYCBO',
'CGYCEB',
'CGYCEB',
'CGYCRK',
'CGYCRM',
'CGYCYP',
'CGYCYZ',
'CGYDGT',
'CGYDPL',
'CGYDVO',
'CGYGES',
'CGYIAO',
'CGYILO',
'CGYKLO',
'CGYLAO',
'CGYLGP',
'CGYLGP',
'CGYMNL',
'CGYMPH',
'CGYOZC',
'CGYPPS',
'CGYRXS',
'CGYSJI',
'CGYSUG',
'CGYTAC',
'CGYTAG',
'CGYTUG',
'CGYUSU',
'CGYVRC',
'CGYWNP',
'CGYZAM',
'CRKBCD',
'CRKBXU',
'CRKCBO',
'CRKCGY',
'CRKDGT',
'CRKDPL',
'CRKDVO',
'CRKGES',
'CRKIAO',
'CRKILO',
'CRKLGP',
'CRKMPH',
'CRKOZC',
'CRKPPS',
'CRKRXS',
'CRKSUG',
'CRKTAC',
'CRKZAM',
'CRMBCD',
'CRMBXU',
'CRMCBO',
'CRMCEB',
'CRMCGY',
'CRMCYP',
'CRMCYZ',
'CRMDGT',
'CRMDPL',
'CRMDVO',
'CRMGES',
'CRMILO',
'CRMKLO',
'CRMLAO',
'CRMLGP',
'CRMMNL',
'CRMMPH',
'CRMOZC',
'CRMPPS',
'CRMRXS',
'CRMSJI',
'CRMTAC',
'CRMTAG',
'CRMTUG',
'CRMUSU',
'CRMVRC',
'CRMWNP',
'CRMZAM',
'CYPBCD',
'CYPBXU',
'CYPCBO',
'CYPCEB',
'CYPCGY',
'CYPCRM',
'CYPCYZ',
'CYPDGT',
'CYPDPL',
'CYPDVO',
'CYPGES',
'CYPILO',
'CYPKLO',
'CYPLAO',
'CYPLGP',
'CYPMNL',
'CYPMPH',
'CYPOZC',
'CYPPPS',
'CYPRXS',
'CYPSJI',
'CYPTAC',
'CYPTAG',
'CYPTUG',
'CYPUSU',
'CYPVRC',
'CYPWNP',
'CYPZAM',
'CYZBCD',
'CYZBXU',
'CYZCBO',
'CYZCEB',
'CYZCGY',
'CYZCRM',
'CYZCYP',
'CYZDGT',
'CYZDPL',
'CYZDVO',
'CYZGES',
'CYZILO',
'CYZKLO',
'CYZLAO',
'CYZLGP',
'CYZMNL',
'CYZMPH',
'CYZOZC',
'CYZPPS',
'CYZRXS',
'CYZSJI',
'CYZTAC',
'CYZTAG',
'CYZTUG',
'CYZUSU',
'CYZVRC',
'CYZWNP',
'CYZZAM',
'DGTBCD',
'DGTBXU',
'DGTCBO',
'DGTCEB',
'DGTCGY',
'DGTCRK',
'DGTCRM',
'DGTCYP',
'DGTCYZ',
'DGTDPL',
'DGTDVO',
'DGTGES',
'DGTIAO',
'DGTILO',
'DGTKLO',
'DGTLAO',
'DGTLGP',
'DGTMNL',
'DGTMPH',
'DGTOZC',
'DGTPPS',
'DGTRXS',
'DGTSJI',
'DGTSUG',
'DGTTAC',
'DGTTAG',
'DGTTUG',
'DGTUSU',
'DGTVRC',
'DGTWNP',
'DGTZAM',
'DLPBXU',
'DPLBCD',
'DPLCBO',
'DPLCEB',
'DPLCGY',
'DPLCRK',
'DPLCRM',
'DPLCYP',
'DPLCYZ',
'DPLDGT',
'DPLDVO',
'DPLGES',
'DPLIAO',
'DPLILO',
'DPLKLO',
'DPLLAO',
'DPLLGP',
'DPLMNL',
'DPLMPH',
'DPLOZC',
'DPLPPS',
'DPLRXS',
'DPLSJI',
'DPLSUG',
'DPLTAC',
'DPLTAG',
'DPLTUG',
'DPLUSU',
'DPLVRC',
'DPLWNP',
'DPLZAM',
'DVOBCD',
'DVOBXU',
'DVOCBO',
'DVOCEB',
'DVOCGY',
'DVOCRK',
'DVOCRM',
'DVOCYP',
'DVOCYZ',
'DVODGT',
'DVODPL',
'DVOGES',
'DVOIAO',
'DVOILO',
'DVOKLO',
'DVOLAO',
'DVOLGP',
'DVOMNL',
'DVOMPH',
'DVOOZC',
'DVOPPS',
'DVORXS',
'DVOSJI',
'DVOSUG',
'DVOTAC',
'DVOTAG',
'DVOTUG',
'DVOUSU',
'DVOVRC',
'DVOWNP',
'DVOZAM',
'GESBCD',
'GESBXU',
'GESCBO',
'GESCEB',
'GESCGY',
'GESCRK',
'GESCRM',
'GESCYP',
'GESCYZ',
'GESDGT',
'GESDPL',
'GESDVO',
'GESIAO',
'GESILO',
'GESKLO',
'GESLAO',
'GESLGP',
'GESMNL',
'GESMPH',
'GESOZC',
'GESPPS',
'GESRXS',
'GESSJI',
'GESSUG',
'GESTAC',
'GESTAG',
'GESTUG',
'GESUSU',
'GESVRC',
'GESWNP',
'GESZAM',
'IAOBCD',
'IAOBXU',
'IAOCBO',
'IAOCGY',
'IAOCRK',
'IAODGT',
'IAODPL',
'IAODVO',
'IAOGES',
'IAOILO',
'IAOLGP',
'IAOMPH',
'IAOOZC',
'IAOPPS',
'IAORXS',
'IAOSUG',
'IAOTAC',
'IAOZAM',
'ILOBCD',
'ILOBXU',
'ILOCBO',
'ILOCEB',
'ILOCGY',
'ILOCRK',
'ILOCRM',
'ILOCYP',
'ILOCYZ',
'ILODGT',
'ILODPL',
'ILODVO',
'ILOGES',
'ILOIAO',
'ILOKLO',
'ILOLAO',
'ILOLGP',
'ILOMNL',
'ILOMPH',
'ILOOZC',
'ILOPPS',
'ILORXS',
'ILOSJI',
'ILOSUG',
'ILOTAC',
'ILOTAG',
'ILOTUG',
'ILOUSU',
'ILOVRC',
'ILOWNP',
'ILOZAM',
'KLOBCD',
'KLOBXU',
'KLOCBO',
'KLOCEB',
'KLOCGY',
'KLOCRM',
'KLOCYP',
'KLOCYZ',
'KLODGT',
'KLODPL',
'KLODVO',
'KLOGES',
'KLOILO',
'KLOLAO',
'KLOLGP',
'KLOMNL',
'KLOMPH',
'KLOOZC',
'KLOPPS',
'KLORXS',
'KLOSJI',
'KLOTAC',
'KLOTAG',
'KLOTUG',
'KLOUSU',
'KLOVRC',
'KLOWNP',
'KLOZAM',
'LAOBCD',
'LAOBXU',
'LAOCBO',
'LAOCEB',
'LAOCGY',
'LAOCRM',
'LAOCYP',
'LAOCYZ',
'LAODGT',
'LAODPL',
'LAODVO',
'LAOGES',
'LAOILO',
'LAOKLO',
'LAOLGP',
'LAOMNL',
'LAOMPH',
'LAOOZC',
'LAOPPS',
'LAORXS',
'LAOSJI',
'LAOTAC',
'LAOTAG',
'LAOTUG',
'LAOUSU',
'LAOVRC',
'LAOWNP',
'LAOZAM',
'LGPBCD',
'LGPBXU',
'LGPCBO',
'LGPCEB',
'LGPCGY',
'LGPCGY',
'LGPCRK',
'LGPCRM',
'LGPCYP',
'LGPCYZ',
'LGPDGT',
'LGPDPL',
'LGPDVO',
'LGPGES',
'LGPIAO',
'LGPILO',
'LGPKLO',
'LGPLAO',
'LGPMNL',
'LGPMPH',
'LGPOZC',
'LGPPPS',
'LGPRXS',
'LGPSJI',
'LGPSUG',
'LGPTAC',
'LGPTAG',
'LGPTUG',
'LGPUSU',
'LGPVRC',
'LGPWNP',
'LGPZAM',
'MNLBCD',
'MNLBXU',
'MNLCBO',
'MNLCEB',
'MNLCGY',
'MNLCRM',
'MNLCYP',
'MNLCYZ',
'MNLDGT',
'MNLDPL',
'MNLDVO',
'MNLGES',
'MNLILO',
'MNLKLO',
'MNLLAO',
'MNLLGP',
'MNLMPH',
'MNLOZC',
'MNLPPS',
'MNLRXS',
'MNLSJI',
'MNLTAC',
'MNLTAG',
'MNLTUG',
'MNLUSU',
'MNLVRC',
'MNLWNP',
'MNLZAM',
'MNLPAG',
'MPHBCD',
'MPHBXU',
'MPHCBO',
'MPHCEB',
'MPHCGY',
'MPHCRK',
'MPHCRM',
'MPHCYP',
'MPHCYZ',
'MPHDGT',
'MPHDPL',
'MPHDVO',
'MPHGES',
'MPHIAO',
'MPHILO',
'MPHKLO',
'MPHLAO',
'MPHLGP',
'MPHMNL',
'MPHOZC',
'MPHPPS',
'MPHRXS',
'MPHSJI',
'MPHSUG',
'MPHTAC',
'MPHTAG',
'MPHTUG',
'MPHUSU',
'MPHVRC',
'MPHWNP',
'MPHZAM',
'OZCBCD',
'OZCBXU',
'OZCCBO',
'OZCCEB',
'OZCCGY',
'OZCCRK',
'OZCCRM',
'OZCCYP',
'OZCCYZ',
'OZCDGT',
'OZCDPL',
'OZCDVO',
'OZCGES',
'OZCIAO',
'OZCILO',
'OZCKLO',
'OZCLAO',
'OZCLGP',
'OZCMNL',
'OZCMPH',
'OZCPPS',
'OZCRXS',
'OZCSUG',
'OZCTAC',
'OZCUSU',
'OZCWNP',
'OZCZAM',
'PPSBCD',
'PPSBXU',
'PPSCBO',
'PPSCEB',
'PPSCGY',
'PPSCRK',
'PPSCRM',
'PPSCYP',
'PPSCYZ',
'PPSDGT',
'PPSDPL',
'PPSDVO',
'PPSGES',
'PPSIAO',
'PPSILO',
'PPSKLO',
'PPSLAO',
'PPSLGP',
'PPSMNL',
'PPSMPH',
'PPSOZC',
'PPSRXS',
'PPSSJI',
'PPSSUG',
'PPSTAC',
'PPSTAG',
'PPSTUG',
'PPSUSU',
'PPSVRC',
'PPSWNP',
'PPSZAM',
'RXSBCD',
'RXSBXU',
'RXSCBO',
'RXSCEB',
'RXSCGY',
'RXSCRK',
'RXSCRM',
'RXSCYP',
'RXSCYZ',
'RXSDGT',
'RXSDPL',
'RXSDVO',
'RXSGES',
'RXSIAO',
'RXSILO',
'RXSKLO',
'RXSLAO',
'RXSLGP',
'RXSMNL',
'RXSMPH',
'RXSOZC',
'RXSPPS',
'RXSSJI',
'RXSSUG',
'RXSTAC',
'RXSTAG',
'RXSTUG',
'RXSUSU',
'RXSVRC',
'RXSWNP',
'RXSZAM',
'SJIBCD',
'SJIBXU',
'SJICBO',
'SJICEB',
'SJICGY',
'SJICRM',
'SJICYP',
'SJICYZ',
'SJIDGT',
'SJIDPL',
'SJIDVO',
'SJIGES',
'SJIILO',
'SJIKLO',
'SJILAO',
'SJILGP',
'SJIMNL',
'SJIMPH',
'SJIPPS',
'SJIRXS',
'SJITAC',
'SJITAG',
'SJITUG',
'SJIUSU',
'SJIVRC',
'SJIWNP',
'SJIZAM',
'SUGBCD',
'SUGBXU',
'SUGCBO',
'SUGCGY',
'SUGCRK',
'SUGDGT',
'SUGDPL',
'SUGDVO',
'SUGGES',
'SUGIAO',
'SUGILO',
'SUGLGP',
'SUGMPH',
'SUGOZC',
'SUGPPS',
'SUGRXS',
'SUGTAC',
'SUGZAM',
'TACBCD',
'TACBXU',
'TACCBO',
'TACCEB',
'TACCGY',
'TACCRK',
'TACCRM',
'TACCYP',
'TACCYZ',
'TACDGT',
'TACDPL',
'TACDVO',
'TACGES',
'TACIAO',
'TACILO',
'TACKLO',
'TACLAO',
'TACLGP',
'TACMNL',
'TACMPH',
'TACOZC',
'TACPPS',
'TACRXS',
'TACSJI',
'TACSUG',
'TACTAG',
'TACTUG',
'TACUSU',
'TACVRC',
'TACWNP',
'TACZAM',
'TAGBCD',
'TAGBXU',
'TAGCBO',
'TAGCEB',
'TAGCGY',
'TAGCRM',
'TAGCYP',
'TAGCYZ',
'TAGDGT',
'TAGDPL',
'TAGDVO',
'TAGGES',
'TAGILO',
'TAGKLO',
'TAGLAO',
'TAGLGP',
'TAGMNL',
'TAGMPH',
'TAGPPS',
'TAGRXS',
'TAGSJI',
'TAGTAC',
'TAGTUG',
'TAGUSU',
'TAGVRC',
'TAGVRC',
'TAGWNP',
'TAGZAM',
'TAGZAM',
'TUGBCD',
'TUGBXU',
'TUGCBO',
'TUGCEB',
'TUGCGY',
'TUGCRM',
'TUGCYP',
'TUGCYZ',
'TUGDGT',
'TUGDPL',
'TUGDVO',
'TUGGES',
'TUGILO',
'TUGKLO',
'TUGLAO',
'TUGLGP',
'TUGMNL',
'TUGMPH',
'TUGPPS',
'TUGRXS',
'TUGSJI',
'TUGTAC',
'TUGTAG',
'TUGUSU',
'TUGWNP',
'USUBCD',
'USUBXU',
'USUCBO',
'USUCEB',
'USUCGY',
'USUCRM',
'USUCYP',
'USUCYZ',
'USUDGT',
'USUDPL',
'USUDVO',
'USUGES',
'USUILO',
'USUKLO',
'USULAO',
'USULGP',
'USUMNL',
'USUMPH',
'USUOZC',
'USUPPS',
'USURXS',
'USUSJI',
'USUTAC',
'USUTAG',
'USUTUG',
'USUVRC',
'USUWNP',
'USUZAM',
'VRCBCD',
'VRCBXU',
'VRCCBO',
'VRCCEB',
'VRCCGY',
'VRCCRM',
'VRCCYP',
'VRCCYZ',
'VRCDGT',
'VRCDPL',
'VRCDVO',
'VRCGES',
'VRCILO',
'VRCKLO',
'VRCLAO',
'VRCLGP',
'VRCMNL',
'VRCMPH',
'VRCPPS',
'VRCRXS',
'VRCSJI',
'VRCTAC',
'VRCTAG',
'VRCTAG',
'VRCUSU',
'VRCWNP',
'WNPBCD',
'WNPBXU',
'WNPCBO',
'WNPCEB',
'WNPCGY',
'WNPCRM',
'WNPCYP',
'WNPCYZ',
'WNPDGT',
'WNPDPL',
'WNPDVO',
'WNPGES',
'WNPILO',
'WNPKLO',
'WNPLAO',
'WNPLGP',
'WNPMNL',
'WNPMPH',
'WNPOZC',
'WNPPPS',
'WNPRXS',
'WNPSJI',
'WNPTAC',
'WNPTAG',
'WNPTUG',
'WNPUSU',
'WNPVRC',
'WNPZAM',
'ZAMBCD',
'ZAMBXU',
'ZAMCBO',
'ZAMCEB',
'ZAMCGY',
'ZAMCRK',
'ZAMCRM',
'ZAMCYP',
'ZAMCYZ',
'ZAMDGT',
'ZAMDPL',
'ZAMDVO',
'ZAMGES',
'ZAMIAO',
'ZAMILO',
'ZAMKLO',
'ZAMLAO',
'ZAMLGP',
'ZAMMNL',
'ZAMMPH',
'ZAMOZC',
'ZAMPPS',
'ZAMRXS',
'ZAMSJI',
'ZAMSUG',
'ZAMTAC',
'ZAMTAG',
'ZAMTAG',
'ZAMUSU',
'ZAMWNP', // END OF D2D 
'BKKCAN', // START OF I2I
'CANBKK',
'BKKHKG',
'HKGBKK',
'BKKICN',
'ICNBKK',
'BKKCGK',
'CGKBKK',
'BKKBKI',
'BKIBKK',
'BKKKUL',
'KULBKK',
'BKKMFM',
'MFMBKK',
'BKKSGN',
'SGNBKK',
'BKKPVG',
'PVGBKK',
'BKKSIN',
'SINBKK',
'BKKTPE',
'TPEBKK',
'CANHKG',
'HKGCAN',
'CANICN',
'ICNCAN',
'CANCGK',
'CGKCAN',
'CANBKI',
'BKICAN',
'CANKUL',
'KULCAN',
'CANMFM',
'MFMCAN',
'CANSGN',
'SGNCAN',
'CANPVG',
'PVGCAN',
'CANSIN',
'SINCAN',
'CANTPE',
'TPECAN',
'HKGICN',
'ICNHKG',
'HKGCGK',
'CGKHKG',
'HKGBKI',
'BKIHKG',
'HKGKUL',
'KULHKG',
'HKGMFM',
'MFMHKG',
'HKGSGN',
'SGNHKG',
'HKGPVG',
'PVGHKG',
'HKGSIN',
'SINHKG',
'HKGTPE',
'TPEHKG',
'HKGCGK',
'CGKHKG',
'HKGBKI',
'BKIHKG',
'HKGKUL',
'KULHKG',
'HKGMFM',
'MFMHKG',
'HKGSGN',
'SGNHKG',
'HKGPVG',
'PVGHKG',
'HKGSIN',
'SINHKG',
'ICNTPE',
'TPEICN',
'CGKBKI',
'BKICGK',
'CGKKUL',
'KULCGK',
'CGKMFM',
'MFMCGK',
'CGKSGN',
'SGNCGK',
'CGKPVG',
'PVGCGK',
'CGKSIN',
'SINCGK',
'CGKTPE',
'TPECGK',
'BKIKUL',
'KULBKI',
'BKIMFM',
'MFMBKI',
'BKISGN',
'SGNBKI',
'BKIPVG',
'PVGBKI',
'BKISIN',
'SINBKI',
'BKITPE',
'TPEBKI',
'KULMFM',
'MFMKUL',
'KULSGN',
'SGNKUL',
'KULPVG',
'PVGKUL',
'KULSIN',
'SINKUL',
'KULTPE',
'TPEKUL',
'MFMSGN',
'SGNMFM',
'MFMPVG',
'PVGMFM',
'MFMSIN',
'SINMFM',
'MFMTPE',
'TPEMFM',
'SGNPVG',
'PVGSGN',
'SGNSIN',
'SINSGN',
'SGNTPE',
'TPESGN',
'PVGSIN',
'SINPVG',
'PVGTPE',
'TPEPVG',
'SINTPE',
'TPESIN',
'PUSHKG',
'HKGPUS',
'PUSICN',
'ICNPUS',
'PUSSIN',
'SINPUS', //END OF I2I
'BCDBKK', //START OF D2I
'BKKBCD',
'BCDCAN',
'CANBCD',
'BCDHKG',
'HKGBCD',
'BCDICN',
'ICNBCD',
'BCDCGK',
'CGKBCD',
'BCDBKI',
'BKIBCD',
'BCDKUL',
'KULBCD',
'BCDMFM',
'MFMBCD',
'BCDSGN',
'SGNBCD',
'BCDPVG',
'PVGBCD',
'BCDSIN',
'SINBCD',
'BCDTPE',
'TPEBCD',
'USUBKK',
'BKKUSU',
'USUCAN',
'CANUSU',
'USUHKG',
'HKGUSU',
'USUICN',
'ICNUSU',
'USUCGK',
'CGKUSU',
'USUBKI',
'BKIUSU',
'USUKUL',
'KULUSU',
'USUMFM',
'MFMUSU',
'USUSGN',
'SGNUSU',
'USUPVG',
'PVGUSU',
'USUSIN',
'SINUSU',
'USUTPE',
'TPEUSU',
'BXUBKK',
'BKKBXU',
'BXUCAN',
'CANBXU',
'BXUHKG',
'HKGBXU',
'BXUICN',
'ICNBXU',
'BXUCGK',
'CGKBXU',
'BXUBKI',
'BKIBXU',
'BXUKUL',
'KULBXU',
'BXUMFM',
'MFMBXU',
'BXUSGN',
'SGNBXU',
'BXUPVG',
'PVGBXU',
'BXUSIN',
'SINBXU',
'BXUTPE',
'TPEBXU',
'CGYBKK',
'BKKCGY',
'CGYCAN',
'CANCGY',
'CGYHKG',
'HKGCGY',
'CGYICN',
'ICNCGY',
'CGYCGK',
'CGKCGY',
'CGYBKI',
'BKICGY',
'CGYKUL',
'KULCGY',
'CGYMFM',
'MFMCGY',
'CGYSGN',
'SGNCGY',
'CGYPVG',
'PVGCGY',
'CGYSIN',
'SINCGY',
'CGYTPE',
'TPECGY',
'CYPBKK',
'BKKCYP',
'CYPCAN',
'CANCYP',
'CYPHKG',
'HKGCYP',
'CYPICN',
'ICNCYP',
'CYPCGK',
'CGKCYP',
'CYPBKI',
'BKICYP',
'CYPKUL',
'KULCYP',
'CYPMFM',
'MFMCYP',
'CYPSGN',
'SGNCYP',
'CYPPVG',
'PVGCYP',
'CYPSIN',
'SINCYP',
'CYPTPE',
'TPECYP',
'CRMBKK',
'BKKCRM',
'CRMCAN',
'CANCRM',
'CRMHKG',
'HKGCRM',
'CRMICN',
'ICNCRM',
'CRMCGK',
'CGKCRM',
'CRMBKI',
'BKICRM',
'CRMKUL',
'KULCRM',
'CRMMFM',
'MFMCRM',
'CRMSGN',
'SGNCRM',
'CRMPVG',
'PVGCRM',
'CRMSIN',
'SINCRM',
'CRMTPE',
'TPECRM',
'MPHBKK',
'BKKMPH',
'MPHCAN',
'CANMPH',
'MPHHKG',
'HKGMPH',
'MPHICN',
'ICNMPH',
'MPHCGK',
'CGKMPH',
'MPHBKI',
'BKIMPH',
'MPHKUL',
'KULMPH',
'MPHMFM',
'MFMMPH',
'MPHSGN',
'SGNMPH',
'MPHPVG',
'PVGMPH',
'MPHSIN',
'SINMPH',
'MPHTPE',
'TPEMPH',
'CYZBKK',
'BKKCYZ',
'CYZCAN',
'CANCYZ',
'CYZHKG',
'HKGCYZ',
'CYZICN',
'ICNCYZ',
'CYZCGK',
'CGKCYZ',
'CYZBKI',
'BKICYZ',
'CYZKUL',
'KULCYZ',
'CYZMFM',
'MFMCYZ',
'CYZSGN',
'SGNCYZ',
'CYZPVG',
'PVGCYZ',
'CYZSIN',
'SINCYZ',
'CYZTPE',
'TPECYZ',
'CEBBKK',
'CEBPUS',
'PUSCEB',
'CEBCAN',
'CANCEB',
'CEBHKG',
'HKGCEB',
'CEBICN',
'ICNCEB',
'CEBCGK',
'CGKCEB',
'CEBBKI',
'BKICEB',
'CEBKUL',
'KULCEB',
'CEBMFM',
'MFMCEB',
'CEBSGN',
'SGNCEB',
'CEBPVG',
'PVGCEB',
'CEBSIN',
'SINCEB',
'CEBTPE',
'TPECEB',
'CBOBKK',
'BKKCBO',
'CBOCAN',
'CANCBO',
'CBOHKG',
'HKGCBO',
'CBOICN',
'ICNCBO',
'CBOCGK',
'CGKCBO',
'CBOBKI',
'BKICBO',
'CBOKUL',
'KULCBO',
'CBOMFM',
'MFMCBO',
'CBOSGN',
'SGNCBO',
'CBOPVG',
'PVGCBO',
'CBOSIN',
'SINCBO',
'CBOTPE',
'TPECBO',
'DVOBKK',
'BKKDVO',
'DVOCAN',
'CANDVO',
'DVOHKG',
'HKGDVO',
'DVOICN',
'ICNDVO',
'DVOCGK',
'CGKDVO',
'DVOBKI',
'BKIDVO',
'DVOKUL',
'KULDVO',
'DVOMFM',
'MFMDVO',
'DVOSGN',
'SGNDVO',
'DVOPVG',
'PVGDVO',
'DVOSIN',
'SINDVO',
'DVOTPE',
'TPEDVO',
'DPLBKK',
'BKKDPL',
'DPLCAN',
'CANDPL',
'DPLHKG',
'HKGDPL',
'DPLICN',
'ICNDPL',
'DPLCGK',
'CGKDPL',
'DPLBKI',
'BKIDPL',
'DPLKUL',
'KULDPL',
'DPLMFM',
'MFMDPL',
'DPLSGN',
'SGNDPL',
'DPLPVG',
'PVGDPL',
'DPLSIN',
'SINDPL',
'DPLTPE',
'TPEDPL',
'DGTBKK',
'BKKDGT',
'DGTCAN',
'CANDGT',
'DGTHKG',
'HKGDGT',
'DGTICN',
'ICNDGT',
'DGTCGK',
'CGKDGT',
'DGTBKI',
'BKIDGT',
'DGTKUL',
'KULDGT',
'DGTMFM',
'MFMDGT',
'DGTSGN',
'SGNDGT',
'DGTPVG',
'PVGDGT',
'DGTSIN',
'SINDGT',
'DGTTPE',
'TPEDGT',
'GESBKK',
'BKKGES',
'GESCAN',
'CANGES',
'GESHKG',
'HKGGES',
'GESICN',
'ICNGES',
'GESCKG',
'CKGGES',
'GESBKI',
'BKIGES',
'GESKUL',
'KULGES',
'GESMFM',
'MFMGES',
'GESSGN',
'SGNGES',
'GESPVG',
'PVGGES',
'GESSIN',
'SINGES',
'GESTPE',
'TPEGES',
'ILOBKK',
'BKKILO',
'ILOCAN',
'CANILO',
'ILOHKG',
'HKGILO',
'ILOICN',
'ICNILO',
'ILOCGK',
'CGKILO',
'ILOBKI',
'BKIILO',
'ILOKUL',
'KULILO',
'ILOMFM',
'MFMILO',
'ILOSGN',
'SGNILO',
'ILOPVG',
'PVGILO',
'ILOSIN',
'SINILO',
'ILOTPE',
'TPEILO',
'KLOBKK',
'BKKKLO',
'KLOCAN',
'CANKLO',
'KLOHKG',
'HKGKLO',
'KLOICN',
'ICNKLO',
'KLOCGK',
'CGKKLO',
'KLOBKI',
'BKIKLO',
'KLOKUL',
'KULKLO',
'KLOMFM',
'MFMKLO',
'KLOSGN',
'SGNKLO',
'KLOPVG',
'PVGKLO',
'KLOSIN',
'SINKLO',
'KLOTPE',
'TPEKLO',
'LAOBKK',
'BKKLAO',
'LAOCAN',
'CANLAO',
'LAOHKG',
'HKGLAO',
'LAOICN',
'ICNLAO',
'LAOCGK',
'CGKLAO',
'LAOBKI',
'BKILAO',
'LAOKUL',
'KULLAO',
'LAOMFM',
'MFMLAO',
'LAOSGN',
'SGNLAO',
'LAOPVG',
'PVGLAO',
'LAOSIN',
'SINLAO',
'LAOTPE',
'TPELAO',
'LGPBKK',
'BKKLGP',
'LGPCAN',
'CANLGP',
'LGPHKG',
'HKGLGP',
'LGPICN',
'ICNLGP',
'LGPCGK',
'CGKLGP',
'LGPBKI',
'BKILGP',
'LGPKUL',
'KULLGP',
'LGPMFM',
'MFMLGP',
'LGPSGN',
'SGNLGP',
'LGPPVG',
'PVGLGP',
'LGPSIN',
'SINLGP',
'LGPTPE',
'TPELGP',
'WNPBKK',
'BKKWNP',
'WNPCAN',
'CANWNP',
'WNPHKG',
'HKGWNP',
'WNPICN',
'ICNWNP',
'WNPCGK',
'CGKWNP',
'WNPBKI',
'BKIWNP',
'WNPKUL',
'KULWNP',
'WNPMFM',
'MFMWNP',
'WNPSGN',
'SGNWNP',
'WNPPVG',
'PVGWNP',
'WNPSIN',
'SINWNP',
'WNPTPE',
'TPEWNP',
'OCZBKK',
'BKKOCZ',
'OCZCAN',
'CANOCZ',
'OCZHKG',
'HKGOCZ',
'OCZICN',
'ICNOCZ',
'OCZCGK',
'CGKOCZ',
'OCZBKI',
'BKIOCZ',
'OCZKUL',
'KULOCZ',
'OCZMFM',
'MFMOCZ',
'OCZSGN',
'SGNOCZ',
'OCZPVG',
'PVGOCZ',
'OCZSIN',
'SINOCZ',
'OCZTPE',
'TPEOCZ',
'PPSBKK',
'BKKPPS',
'PPSCAN',
'CANPPS',
'PPSHKG',
'HKGPPS',
'PPSICN',
'ICNPPS',
'PPSCGK',
'CGKPPS',
'PPSBKI',
'BKIPPS',
'PPSKUL',
'KULPPS',
'PPSMFM',
'MFMPPS',
'PPSSGN',
'SGNPPS',
'PPSPVG',
'PVGPPS',
'PPSSIN',
'SINPPS',
'PPSTPE',
'TPEPPS',
'RXSBKK',
'BKKRXS',
'RXSCAN',
'CANRXS',
'RXSHKG',
'HKGRXS',
'RXSICN',
'ICNRXS',
'RXSCGK',
'CGKRXS',
'RXSBKI',
'BKIRXS',
'RXSKUL',
'KULRXS',
'RXSMFM',
'MFMRXS',
'RXSSGN',
'SGNRXS',
'RXSPVG',
'PVGRXS',
'RXSSIN',
'SINRXS',
'RXSTPE',
'TPERXS',
'SJIBKK',
'BKKSJI',
'SJICAN',
'CANSJI',
'SJIHKG',
'HKGSJI',
'SJIICN',
'ICNSJI',
'SJICGK',
'CGKSJI',
'SJIBKI',
'BKISJI',
'SJIKUL',
'KULSJI',
'SJIMFM',
'MFMSJI',
'SJISGN',
'SGNSJI',
'SJIPVG',
'PVGSJI',
'SJISIN',
'SINSJI',
'SJITPE',
'TPESJI',
'TACBKK',
'BKKTAC',
'TACCAN',
'CANTAC',
'TACHKG',
'HKGTAC',
'TACICN',
'ICNTAC',
'TACCGK',
'CGKTAC',
'TACBKI',
'BKITAC',
'TACKUL',
'KULTAC',
'TACMFM',
'MFMTAC',
'TACSGN',
'SGNTAC',
'TACPVG',
'PVGTAC',
'TACSIN',
'SINTAC',
'TACTPE',
'TPETAC',
'TAGBKK',
'BKKTAG',
'TAGCAN',
'CANTAG',
'TAGHKG',
'HKGTAG',
'TAGICN',
'ICNTAG',
'TAGCGK',
'CGKTAG',
'TAGBKI',
'BKITAG',
'TAGKUL',
'KULTAG',
'TAGMFM',
'MFMTAG',
'TAGSGN',
'SGNTAG',
'TAGPVG',
'PVGTAG',
'TAGSIN',
'SINTAG',
'TAGTPE',
'TPETAG',
'TUGBKK',
'BKKTUG',
'TUGCAN',
'CANTUG',
'TUGHKG',
'HKGTUG',
'TUGICN',
'ICNTUG',
'TUGCGK',
'CGKTUG',
'TUGBKI',
'BKITUG',
'TUGKUL',
'KULTUG',
'TUGMFM',
'MFMTUG',
'TUGSGN',
'SGNTUG',
'TUGPVG',
'PVGTUG',
'TUGSIN',
'SINTUG',
'TUGTPE',
'TPETUG',
'VRCBKK',
'BKKVRC',
'VRCCAN',
'CANVRC',
'VRCHKG',
'HKGVRC',
'VRCICN',
'ICNVRC',
'VRCCGK',
'CGKVRC',
'VRCBKI',
'BKIVRC',
'VRCKUL',
'KULVRC',
'VRCMFM',
'MFMVRC',
'VRCSGN',
'SGNVRC',
'VRCPVG',
'PVGVRC',
'VRCSIN',
'SINVRC',
'VRCTPE',
'TPEVRC',
'ZAMBKK',
'BKKZAM',
'ZAMCAN',
'CANZAM',
'ZAMHKG',
'HKGZAM',
'ZAMICN',
'ICNZAM',
'ZAMCGK',
'CGKZAM',
'ZAMBKI',
'BKIZAM',
'ZAMKUL',
'KULZAM',
'ZAMMFM',
'MFMZAM',
'ZAMSGN',
'SGNZAM',
'ZAMPVG',
'PVGZAM',
'ZAMSIN',
'SINZAM',
'ZAMTPE',
'TPEZAM',
'BCDPUS',
'PUSBCD',
'BXUPUS',
'PUSBXU',
'CGYPUS',
'PUSCGY',
'CGYHKG',
'HKGCGY',
'MPHPUS',
'PUSMPH',
'CRKPUS',
'PUSCRK',
'CRKHKG',
'HKGCRK',
'CRKICN',
'ICNCRK',
'CRKSIN',
'SINCRK',
'CBOPUS',
'PUSCBO',
'DVOPUS',
'PUSDVO',
'DPLPUS',
'PUSDPL',
'DGTPUS',
'PUSDGT',
'GESPUS',
'PUSGES',
'ILOPUS',
'PUSILO',
'LGPPUS',
'PUSLGP',
'OZCPUS',
'PUSOZC',
'PPSPUS',
'PUSPPS',
'RXSPUS',
'PUSRXS',
'IAOPUS',
'PUSIAO',
'IAOHKG',
'HKGIAO',
'IAOICN',
'ICNIAO',
'IAOSIN',
'SINIAO',
'SUGPUS',
'PUSSUG',
'SUGHKG',
'HKGSUG',
'SUGICN',
'ICNSUG',
'SUGSIN',
'SINSUG',
'TACPUS',
'PUSTAC',
'ZAMPUS',
'PUSZAM', //END OF D2I
'GESCGK', // --- additionals
'CGKGES',
'OZCBKK',
'BKKOZC',
'OZCCAN',
'CANOZC',
'OZCHKG',
'HKGOZC',
'OZCICN',
'ICNOZC',
'OZCCGK',
'CGKOZC',
'OZCBKI',
'BKIOZC',
'OZCKUL',
'KULOZC',
'OZCMFM',
'MFMOZC',
'OZCSGN',
'SGNOZC',
'OZCPVG',
'PVGOZC',
'OZCSIN',
'SINOZC',
'OZCTPE',
'TPEOZC',
'MNLBKK',
'BKKMNL',
'MNLCAN',
'CANMNL',
'MNLSGN',
'SGNMNL',
'MNLHKG',
'HKGMNL',
'MNLICN',
'ICNMNL',
'MNLCGK',
'CGKMNL',
'MNLBKI',
'BKIMNL',
'MNLKUL',
'KULMNL',
'MNLMFM',
'MFMMNL',
'MNLKIX',
'KIXMNL',
'MNLPVG',
'PVGMNL',
'MNLSIN',
'SINMNL',
'MNLTPE',
'TPEMNL',
'PAGMNL',
'PAGCEB',
'KIXMNL',
'CRKBKK', 
'BKKCRK', 
'CRKMFM', 
'MFMCRK',
'CEBCRK',
'CRKCEB',
'CEBSUG',
'SUGCEB',
'CEBIAO',
'IAOCEB',
'BKKCEB',
'MNLBWN',
'BWNMNL',
'MNLPEK',
'PEKMNL'
 //--additionals
);





////'MNLICN',
////'ICNMNL',
////'PUSCEB',
////'ICNCEB',
////'CEBPUS',
////'CEBICN',
////'MNLCYP',
////'CYPMNL',
////'MNLCRM',
////'CRMMNL',
////'MNLCYZ',
////'CYZMNL',
////'MNLVRC',
////'VRCMNL',
////'IAOCEB',
////'CEBIAO',
////'MNLKIX',
////'KIXMNL',
////'MNLUSU',
////'CEBOZC',
////'CEBSUG',
////'USUMNL',
////'OZCCEB',
////'SUGCEB',
////'DPLCEB',
////'CEBGES',
////'GESCEB',
////'MNLWNP',
////'MNLTUG',
////'MNLSJI',
////'WNPMNL',
////'TUGMNL',
////'SJIMNL',
////'MNLBKI',
////'BKIMNL',
////'MPHMNL',
////'MPHCEB',
////'MPHBKK',
////'MPHCAN',
////'MPHHKG',
////'MPHCGK',
////'MPHKUL',
////'MPHMFM',
////'MPHSIN',
////'MPHPVG',
////'MNLBCD',
////'MNLBXU',
////'MNLMPH',
////'MNLCGY',
////'MNLCEB',
////'MNLCBO',
////'MNLDVO',
////'MNLDPL',
////'MNLDGT',
////'MNLGES',
////'MNLILO',
////'MNLKLO',
////'MNLLAO',
////'MNLLGP',
////'MNLPPS',
////'MNLRXS',
////'MNLTAC',
////'MNLTAG',
////'MNLZAM',
////'MNLHKG',
////'MNLSIN',
////'MNLKUL',
////'MNLBKK',
////'MNLCGK',
////'MNLTPE',
////'MNLCAN',
////'MNLPVG',
////'MNLXMN',
////'MNLMFM',
////'MNLTPE',
////'MNLHAN',
////'MNLSGN',
////'BCDMNL',
////'BCDBXU',
////'BCDCEB',
////'BCDCGY',
////'BCDDPL',
////'BCDDGT',
////'BCDDVO',
////'BCDKLO',
////'BCDLAO',
////'BCDPPS',
////'BCDRXS',
////'BCDTAC',
////'BCDTAG',
////'BXUMNL',
////'BXUCEB',
////'BXUDVO',
////'BXUILO',
////'BKKMNL',
////'BKKBCD',
////'BKKMPH',
////'BKKBXU',
////'BKKCGY',
////'BKKCEB',
////'BKKCBO',
////'BKKDVO',
////'BKKGES',
////'BKKHKG',
////'BKKKLO',
////'BKKLGP',
////'BKKTAG',
////'BKKTAC',
////'BKKTPE',
////'CGKMPH',
////'CGKBXU',
////'CGKCGY',
////'CGKCEB',
////'CGKDVO',
////'CGKGES',
////'CGKHKG',
////'CGKKLO',
////'CGKLAO',
////'CGKLGP',
////'CGKRXS',
////'CGKTAC',
////'CGKTAG',
////'CGKTPE',
////'CGKMNL',
////'CRKCEB',
////'CRKDVO',
////'CBOCEB',
////'CBODVO',
////'CBOILO',
////'CGYMNL',
////'CGYDGT',
////'CGYDVO',
////'CGYILO',
////'CGYKLO',
////'CGYLAO',
////'CGYRXS',
////'CGYTAC',
////'CGYTAG',
////'CEBMPH',
////'CEBMNL',
////'CEBBCD',
////'CEBBXU',
////'CEBCGY',
////'CEBDPL',
////'CEBDGT',
////'CEBGES',
////'CEBKLO',
////'CEBLGP',
////'CEBLAO',
////'CEBPPS',
////'CEBRXS',
////'CEBTAC',
////'CEBTAG',
////'CEBCRK',
////'CEBDVO',
////'CEBHKG',
////'CEBILO',
////'CEBSIN',
////'CEBZAM',
////'CEBTPE',
////'DVOGES',
////'DVOMNL',
////'DVOILO',
////'DVOKLO',
////'DVOLAO',
////'DVOLGP',
////'DVORXS',
////'DVOTAC',
////'DVOTAG',
////'DVOPPS',
////'DVOCEB',
////'DVOHKG',
////'DVOSIN',
////'DVOILO',
////'DVOZAM',
////'DVOTPE',
////'DPLMNL',
////'DPLBCD',
////'DPLCEB',
////'DPLDVO',
////'DPLILO',
////'DGTMNL',
////'DGTBCD',
////'DGTCEB',
////'DGTHKG',
////'DGTDVO',
////'DGTILO',
////'DGTCGY',
////'DGTKLO',
////'DGTTAC',
////'DGTTAG',
////'GESDVO',
////'GESCEB',
////'GESMNL',
////'ILOBXU',
////'ILOCGY',
////'ILODPL',
////'ILODGT',
////'ILOMNL',
////'ILOKLO',
////'ILOLAO',
////'ILOLGP',
////'ILORXS',
////'ILOTAC',
////'ILOTAG',
////'ILODVO',
////'ILOCEB',
////'ILOPPS',
////'ILOCBO',
////'LAOMNL',
////'LGPMNL',
////'KLOBCD',
////'KLOCGY',
////'KLOCEB',
////'KLODVO',
////'KLODGT',
////'KLOTAG',
////'KLOMNL',
////'KLOILO',
////'KLOTAC',
////'MFMMPH',
////'MFMCGY',
////'MFMDVO',
////'MFMMNL',
////'MFMTAC',
////'MFMTAG',
////'MFMZAM',
////'PPSMNL',
////'PPSBCD',
////'PPSCEB',
////'PPSDVO',
////'PPSILO',
////'RXSMNL',
////'RXSBCD',
////'RXSCGY',
////'RXSCEB',
////'RXSDVO',
////'RXSILO',
////'SGNMNL',
////'TACMNL',
////'TACTAG',
////'TACDGT',
////'TAGMNL',
////'TAGDGT',
////'TPEMNL',
////'HKGMNL',
////'SINMNL',
////'SINMPH',
////'SINBXU',
////'SINCGY',
////'SINCEB',
////'SINCRK',
////'SINCBO',
////'SINDVO',
////'SINDPL',
////'SINHKG',
////'SINLAO',
////'SINPPS',
////'SINRXS',
////'SINTAC',
////'SINTAG',
////'SINTPE',
////'KULMPH',
////'KULBXU',
////'KULCGY',
////'KULCEB',
////'KULCBO',
////'KULDVO',
////'KULDPL',
////'KULGES',
////'KULHKG',
////'KULKLO',
////'KULLAO',
////'KULLGP',
////'KULRXS',
////'KULTAC',
////'KULTAG',
////'KULTPE',
////'KULMNL',
////'ZAMMNL',
////'ZAMCEB',
////'HKGBKK',
////'HKGMPH',
////'HKGCEB',
////'HKGCRK',
////'HKGDVO',
////'HKGDGT',
////'HKGILO',
////'HKGCGK',
////'HKGKUL',
////'HKGPVG',
////'HKGPPS',
////'HKGSIN',
////'HANMNL',
////'TPEBKK',
////'TPECEB',
////'TPEDVO',
////'TPEILO',
////'TPECGK',
////'TPEKUL',
////'TPEPVG',
////'TPESIN',
////'ZAMDVO',
////'BCDBKK',
////'BXUBCD',
////'BXUBKK',
////'BXUCGK',
////'BXUKUL',
////'BXUPVG',
////'BXUSIN',
////'CANMPH',
////'CANCGY',
////'CANCEB',
////'CANDVO',
////'CANMNL',
////'CANTAC',
////'CANTAG',
////'CANZAM',
////'CBOBKK',
////'CBOKUL',
////'CBOMNL',
////'CBOPVG',
////'CBOSIN',
////'CEBBKK',
////'CEBCAN',
////'CEBCBO',
////'CEBCGK',
////'CEBHKG',
////'CEBKUL',
//////'CEBMFM',
////'CEBPVG',
////'CEBSIN',
////'CEBTPE',
////'CGYBKK',
////'CGYBCD',
////'CGYCAN',
////'CGYCEB',
////'CGYCGK',
////'CGYKUL',
////'CGYMFM',
////'CGYPVG',
////'CGYSIN',
////'CRKHKG',
////'CRKSIN',
////'DPLBKK',
////'DPLKUL',
////'DPLPVG',
////'DPLSIN',
////'DVOBCD',
////'DVOBKK',
////'DVOBXU',
////'DVOCGY',
////'DVOCAN',
////'DVOCRK',
////'DVOCBO',
////'DVODPL',
////'DVODGT',
////'DVOCGK',
////'DVOHKG',
////'DVOKUL',
////'DVOMFM',
////'DVOPVG',
////'DVOSIN',
////'GESBKK',
////'GESCGK',
////'GESKUL',
////'ILOHKG',
////'ILOTPE',
////'KLOBKK',
////'KLOCGK',
////'KLOKUL',
////'LAOBCD',
////'LAOCGY',
////'LAOCEB',
////'LAODVO',
////'LAOILO',
////'LAOCGK',
////'LAOKUL',
////'LAOPVG',
////'LAOSIN',
////'LGPCEB',
////'LGPDVO',
////'LGPILO',
////'LGPBKK',
////'LGPCGK',
////'LGPKUL',
////'PPSHKG',
////'PPSSIN',
////'PVGMPH',
////'PVGBXU',
////'PVGCGY',
////'PVGCEB',
////'PVGCBO',
////'PVGDVO',
////'PVGDPL',
////'PVGHKG',
////'PVGLAO',
////'PVGMNL',
////'PVGRXS',
////'PVGTAC',
////'PVGTAG',
////'PVGTPE',
////'RXSCGK',
////'RXSKUL',
////'RXSPVG',
////'RXSSIN',
////'TACBCD',
////'TACBKK',
////'TACCGY',
////'TACCAN',
////'TACCEB',
////'TACDVO',
////'TACILO',
////'TACKLO',
////'TACCGK',
////'TACKUL',
////'TACMFM',
////'TACPVG',
////'TACSIN',
////'TAGBCD',
////'TAGCGY',
////'TAGCAN',
////'TAGCEB',
////'TAGDVO',
////'TAGILO',
////'TAGKLO',
////'TAGTAC',
////'TAGBKK',
////'TAGCAN',
////'TAGCGK',
////'TAGKUL',
////'TAGMFM',
////'TAGPVG',
////'TAGSIN',
////'XMNMNL',
////'ZAMCAN',
////'ZAMMFM',
////'CRKBKK',
////'CRKHKG',
////'CRKMFM',
////'CRKSIN',
////'SINCRK',
////'MFMCRK',
////'BKKCRK',
////'HKGCRK',
////'BCDUSU',    //Additional Routes
////'BCDBXU',
////'BCDCGY',
////'BCDCYP',
////'BCDCRM',
////'BCDMPH',
////'BCDCYZ',
////'BCDCEB',
////'BCDCBO',
////'BCDDVO',
////'BCDDPL',
////'BCDDGT',
////'BCDGES',
////'BCDILO',
////'BCDKLO',
////'BCDLAO',
////'BCDLGP',
////'BCDWNP',
////'BCDPPS',
////'BCDRXS',
////'BCDSJI',
////'BCDTAC',
////'BCDTAG',
////'BCDVRC',
////'BCDTUG',
////'BCDZAM',
////'USUBXU',
////'USUCGY',
////'USUCYP',
////'USUCRM',
////'USUMPH',
////'USUCYZ',
////'USUCEB',
////'USUCBO',
////'USUDVO',
////'USUDPL',
////'USUDGT',
////'USUGES',
////'USUILO',
////'USUKLO',
////'USULAO',
////'USULGP',
////'USUWNP',
////'USUPPS',
////'USURXS',
////'USUSJI',
////'USUTAC',
////'USUTAG',
////'USUVRC',
////'USUTUG',
////'USUZAM',
////'BXUCGY',
////'BXUCYP',
////'BXUCRM',
////'BXUMPH',
////'BXUCYZ',
////'BXUCEB',
////'BXUCBO',
////'BXUDVO',
////'BXUDPL',
////'BXUDGT',
////'BXUGES',
////'BXUILO',
////'BXUKLO',
////'BXULAO',
////'BXULGP',
////'BXUWNP',
////'BXUPPS',
////'BXURXS',
////'BXUSJI',
////'BXUTAC',
////'BXUTAG',
////'BXUVRC',
////'BXUTUG',
////'BXUZAM', // ADDITIONAL ROUTES
////'CGYCYP',
////'CGYCRM',
////'CGYMPH',
////'CGYCYZ',
////'CGYCEB',
////'CGYCBO',
////'CGYDVO',
////'CGYDPL',
////'CGYDGT',
////'CGYGES',
////'CGYILO',
////'CGYKLO',
////'CGYLAO',
////'CGYLGP',
////'CGYWNP',
////'CGYPPS',
////'CGYRXS',
////'CGYSJI',
////'CGYTAC',
////'CGYTAG',
////'CGYVRC',
////'CGYTUG',
////'CGYZAM', // ADDITIONAL ROUTES
////'CYPCRM',
////'CYPMPH',
////'CYPCYZ',
////'CYPCEB',
////'CYPCBO',
////'CYPDVO',
////'CYPDPL',
////'CYPDGT',
////'CYPGES',
////'CYPILO',
////'CYPKLO',
////'CYPLAO',
////'CYPLGP',
////'CYPWNP',
////'CYPPPS',
////'CYPRXS',
////'CYPSJI',
////'CYPTAC',
////'CYPTAG',
////'CYPVRC',
////'CYPTUG',
////'CYPZAM', // ADDITIONAL ROUTES
////'CRMMPH',
////'CRMCYZ',
////'CRMCEB',
////'CRMCBO',
////'CRMDVO',
////'CRMDPL',
////'CRMDGT',
////'CRMGES',
////'CRMILO',
////'CRMKLO',
////'CRMLAO',
////'CRMLGP',
////'CRMWNP',
////'CRMPPS',
////'CRMRXS',
////'CRMSJI',
////'CRMTAC',
////'CRMTAG',
////'CRMVRC',
////'CRMTUG',
////'CRMZAM', // ADDITIONAL ROUTES
////'MPHCYZ',
////'MPHCEB',
////'MPHCBO',
////'MPHDVO',
////'MPHDPL',
////'MPHDGT',
////'MPHGES',
////'MPHILO',
////'MPHKLO',
////'MPHLAO',
////'MPHLGP',
////'MPHWNP',
////'MPHPPS',
////'MPHRXS',
////'MPHSJI',
////'MPHTAC',
////'MPHTAG',
////'MPHVRC',
////'MPHTUG',
////'MPHZAM', // ADDITIONAL ROUTES
////'CYZCEB',
////'CYZCBO',
////'CYZDVO',
////'CYZDPL',
////'CYZDGT',
////'CYZGES',
////'CYZILO',
////'CYZKLO',
////'CYZLAO',
////'CYZLGP',
////'CYZWNP',
////'CYZPPS',
////'CYZRXS',
////'CYZSJI',
////'CYZTAC',
////'CYZTAG',
////'CYZVRC',
////'CYZTUG',
////'CYZZAM', // ADDITIONAL ROUTE
////'CEBCBO',
////'CEBDVO',
////'CEBDPL',
////'CEBDGT',
////'CEBGES',
////'CEBILO',
////'CEBKLO',
////'CEBLAO',
////'CEBLGP',
////'CEBWNP',
////'CEBPPS',
////'CEBRXS',
////'CEBSJI',
////'CEBTAC',
////'CEBTAG',
////'CEBVRC',
////'CEBTUG',
////'CEBZAM', // ADDITIONAL ROUTE
////'CBODVO',
////'CBODPL',
////'CBODGT',
////'CBOGES',
////'CBOILO',
////'CBOKLO',
////'CBOLAO',
////'CBOLGP',
////'CBOWNP',
////'CBOPPS',
////'CBORXS',
////'CBOSJI',
////'CBOTAC',
////'CBOTAG',
////'CBOVRC',
////'CBOTUG',
////'CBOZAM', // ADDITIONAL ROUTE
////'DVODPL',
////'DVODGT',
////'DVOGES',
////'DVOILO',
////'DVOKLO',
////'DVOLAO',
////'DVOLGP',
////'DVOWNP',
////'DVOPPS',
////'DVORXS',
////'DVOSJI',
////'DVOTAC',
////'DVOTAG',
////'DVOVRC',
////'DVOTUG',
////'DVOZAM', // ADDITIONAL ROUTE
////'DPLDGT',
////'DPLGES',
////'DPLILO',
////'DPLKLO',
////'DPLLAO',
////'DPLLGP',
////'DPLWNP',
////'DPLPPS',
////'DPLRXS',
////'DPLSJI',
////'DPLTAC',
////'DPLTAG',
////'DPLVRC',
////'DPLTUG',
////'DPLZAM', // ADDITIONAL ROUTE
////'DGTGES',
////'DGTILO',
////'DGTKLO',
////'DGTLAO',
////'DGTLGP',
////'DGTWNP',
////'DGTPPS',
////'DGTRXS',
////'DGTSJI',
////'DGTTAC',
////'DGTTAG',
////'DGTVRC',
////'DGTTUG',
////'DGTZAM', // ADDITIONAL ROUTE
////'GESILO',
////'GESKLO',
////'GESLAO',
////'GESLGP',
////'GESWNP',
////'GESPPS',
////'GESRXS',
////'GESSJI',
////'GESTAC',
////'GESTAG',
////'GESVRC',
////'GESTUG',
////'GESZAM', // ADDITIONAL ROUTE
////'ILOKLO',
////'ILOLAO',
////'ILOLGP',
////'ILOWNP',
////'ILOPPS',
////'ILORXS',
////'ILOSJI',
////'ILOTAC',
////'ILOTAG',
////'ILOVRC',
////'ILOTUG',
////'ILOZAM', // ADDITIONAL ROUTE
////'KLOLAO',
////'KLOLGP',
////'KLOWNP',
////'KLOPPS',
////'KLORXS',
////'KLOSJI',
////'KLOTAC',
////'KLOTAG',
////'KLOVRC',
////'KLOTUG',
////'KLOZAM', // ADDITIONAL ROUTE
////'LAOLGP',
////'LAOWNP',
////'LAOPPS',
////'LAORXS',
////'LAOSJI',
////'LAOTAC',
////'LAOTAG',
////'LAOVRC',
////'LAOTUG',
////'LAOZAM', // ADDITIONAL ROUTE
////'LGPWNP',
////'LGPPPS',
////'LGPRXS',
////'LGPSJI',
////'LGPTAC',
////'LGPTAG',
////'LGPVRC',
////'LGPTUG',
////'LGPZAM', // ADDITIONAL ROUTE
////'WNPPPS',
////'WNPRXS',
////'WNPSJI',
////'WNPTAC',
////'WNPTAG',
////'WNPVRC',
////'WNPTUG',
////'WNPZAM', // ADDITIONAL ROUTE
////'PPSRXS',
////'PPSSJI',
////'PPSTAC',
////'PPSTAG',
////'PPSVRC',
////'PPSTUG',
////'PPSZAM', // ADDITIONAL ROUTE
////'RXSSJI',
////'RXSTAC',
////'RXSTAG',
////'RXSVRC',
////'RXSTUG',
////'RXSZAM', // ADDITIONAL ROUTE
////'SJITAC',
////'SJITAG',
////'SJIVRC',
////'SJITUG',
////'SJIZAM', // ADDITIONAL ROUTE
////'TACTAG',
////'TACVRC',
////'TACTUG',
////'TACZAM', // ADDITIONAL ROUTE
////'TAGVRC',
////'TAGTUG',
////'TAGZAM', // ADDITIONAL ROUTE
////'TUGVRC',
////'TUGZAM', // ADDITIONAL ROUTE
////'BCDCRK',
////'BCDMNL',
////'BCDOZC',
////'BCDIAO',
////'BCDSUG',
////'BXUCRK',
////'BXUMNL',
////'BXUOZC',
////'BXUIAO',
////'BXUSUG',
////'CGYCRK',
////'CGYMNL',
////'CGYOZC',
////'CGYIAO',
////'CGYSUG',
////'MPHCRK',
////'MPHMNL',
////'MPHOZC',
////'MPHIAO',
////'MPHSUG',
////'CRKCBO',
////'CRKDVO',
////'CRKDPL',
////'CRKDGT',
////'CRKGES',
////'CRKILO',
////'CRKLGP',
////'CRKMNL',
////'CRKOZC',
////'CRKPPS',
////'CRKIAO',
////'CRKSUG',
////'CRKTAC',
////'CRKZAM',
////'COTMNL',
////'COTOZC',
////'COTIAO',
////'COTSUG',
////'DVOMNL',
////'DVOOZC',
////'DVOIAO',
////'DVOSUG',
////'DPLMNL',
////'DPLOZC',
////'DPLIAO',
////'DPLSUG',
////'DGTMNL',
////'DGTOZC',
////'DGTIAO',
////'DGTSUG',
////'GESMNL',
////'GESOZC',
////'GESIAO',
////'GESSUG',
////'ILOMNL',
////'ILOOZC',
////'ILOIAO',
////'ILOSUG',
////'LGPMNL',
////'LGPOZC',
////'LGPIAO',
////'LGPSUG',
////'OZCMNL',
////'OZCPPS',
////'OZCIAO',
////'OZCSUG',
////'OZCTAC',
////'OZCZAM',
////'PPSMNL',
////'PPSIAO',
////'PPSSUG',
////'IAOMNL',
////'IAOSUG',
////'IAOTAC',
////'IAOZAM',
////'SUGMNL',
////'SUGTAC',
////'SUGZAM',
////'TACMNL',
////'ZAMMNL',
////'MNLCRK',
////'MNLOZC',
////'MNLIAO',
////'MNLSUG',
////'BCDCAN', //as of June 19, 2009
////'BCDHKG',
////'BCDCGK',
////'BCDBKI',
////'BCDKUL',
////'BCDMFM',
////'BCDSGN',
////'BCDPVG',
////'BCDSIN',
////'BCDTPE',
////'USUBKK',
////'USUCAN',
////'USUHKG',
////'USUCGK',
////'USUBKI',
////'USUKUL',
////'USUMFM',
////'USUSGN',
////'USUPVG',
////'USUSIN',
////'USUTPE',
////'BXUCAN',
////'BXUHKG',
////'BXUBKI',
////'BXUMFM',
////'BXUSGN',
////'BXUTPE',
////'CGYHKG',
////'CGYBKI',
////'CGYSGN',
////'CGYTPE',
////'CYPBKK',
////'CYPCAN',
////'CYPHKG',
////'CYPCGK',
////'CYPBKI',
////'CYPKUL',
////'CYPMFM',
////'CYPSGN',
////'CYPPVG',
////'CYPSIN',
////'CYPTPE',
////'CRMBKK',
////'CRMCAN',
////'CRMHKG',
////'CRMCGK',
////'CRMBKI',
////'CRMKUL',
////'CRMMFM',
////'CRMSGN',
////'CRMPVG',
////'CRMSIN',
////'CRMTPE',
////'MPHBKI',
////'MPHSGN',
////'MPHTPE',
////'CYZBKK',
////'CYZCAN',
////'CYZHKG',
////'CYZCGK',
////'CYZBKI',
////'CYZKUL',
////'CYZMFM',
////'CYZSGN',
////'CYZPVG',
////'CYZSIN',
////'CYZTPE',
////'CEBBKI',
////'CEBMFM',
////'CEBSGN',
////'CEBPVG',
////'CBOCAN',
////'CBOHKG',
////'CBOCGK',
////'CBOBKI',
////'CBOMFM',
////'CBOSGN',
////'CBOTPE',
////'DVOBKI',
////'DVOSGN',
////'DPLCAN',
////'DPLHKG',
////'DPLCGK',
////'DPLBKI',
////'DPLMFM',
////'DPLSGN',
////'DPLTPE',
////'DGTBKK',
////'DGTCAN',
////'DGTCGK',
////'DGTBKI',
////'DGTKUL',
////'DGTMFM',
////'DGTSGN',
////'DGTPVG',
////'DGTSIN',
////'DGTTPE',
////'GESCAN',
////'GESHKG',
////'GESBKI',
////'GESMFM',
////'GESSGN',
////'GESPVG',
////'GESSIN',
////'GESTPE',
////'ILOBKK',
////'ILOCAN',
////'ILOCGK',
////'ILOBKI',
////'ILOKUL',
////'ILOMFM',
////'ILOSGN',
////'ILOPVG',
////'ILOSIN',
////'ILOTPE',
////'KLOCAN',
////'KLOHKG',
////'KLOBKI',
////'KLOMFM',
////'KLOSGN',
////'KLOPVG',
////'KLOSIN',
////'KLOTPE',
////'LAOBKK',
////'LAOCAN',
////'LAOHKG',
////'LAOBKI',
////'LAOKUL',
////'LAOMFM',
////'LAOSGN',
////'LAOTPE',
////'LGPCAN',
////'LGPHKG',
////'LGPBKI',
////'LGPMFM',
////'LGPSGN',
////'LGPPVG',
////'LGPSIN',
////'LGPTPE',
////'WNPBKK',
////'WNPCAN',
////'WNPHKG',
////'WNPCGK',
////'WNPBKI',
////'WNPKUL',
////'WNPMFM',
////'WNPSGN',
////'WNPSGN',
////'WNPPVG',
////'WNPSIN',
////'WNPTPE',
////'PPSBKK',
////'PPSCAN',
////'PPSCGK',
////'PPSBKI',
////'PPSKUL',
////'PPSMFM',
////'PPSSGN',
////'PPSPVG',
////'PPSSIN',
////'PPSTPE',
////'RXSBKK',
////'RXSBKK',
////'RXSCAN',
////'RXSHKG',
////'RXSBKI',
////'RXSMFM',
////'RXSSGN',
////'RXSTPE',
////'SJIBKK',
////'SJICAN',
////'SJIHKG',
////'SJICGK',
////'SJIBKI',
////'SJIKUL',
////'SJIMFM',
////'SJISGN',
////'SJIPVG',
////'SJISIN',
////'SJITPE',
////'TACHKG',
////'TACBKI',
////'TACSGN',
////'TACTPE',
////'TAGHKG',
////'TAGBKI',
////'TAGSGN',
////'TAGTPE',
////'TUGBKK',
////'TUGCAN',
////'TUGHKG',
////'TUGCGK',
////'TUGBKI',
////'TUGKUL',
////'TUGMFM',
////'TUGSGN',
////'TUGSGN',
////'TUGPVG',
////'TUGSIN',
////'TUGTPE',
////'VRCBKK',
////'VRCCAN',
////'VRCHKG',
////'VRCCGK',
////'VRCBKI',
////'VRCKUL',
////'VRCMFM',
////'VRCSGN',
////'VRCPVG',
////'VRCSIN',
////'VRCTPE',
////'ZAMBKK',
////'ZAMHKG',
////'ZAMCGK',
////'ZAMBKI',
////'ZAMKUL',
////'ZAMSGN',
////'ZAMPVG',
////'ZAMSIN',
////'ZAMTPE',
////'CANBCD', //as of June 21, 2009
////'HKGBCD',
////'BKIBCD',
////'KULBCD',
////'MFMBCD',
////'SGNBCD',
////'PVGBCD',
////'SINBCD',
////'TPEBCD',
////'BKKUSU',
////'CANUSU',
////'HKGUSU',
////'CGKUSU',
////'BKIUSU',
////'KULUSU',
////'MFMUSU',
////'SGNUSU',
////'PVGUSU',
////'SINUSU',
////'TPEUSU',
////'CANBXU',
////'HKGBXU',
////'BKIBXU',
////'MFMBXU',
////'SGNBXU',
////'TPEBXU',
////'HKGCGY',
////'BKICGY',
////'SGNCGY',
////'TPECGY',
////'BKKCYP',
////'CANCYP',
////'HKGCYP',
////'CGKCYP',
////'BKICYP',
////'KULCYP',
////'MFMCYP',
////'SGNCYP',
////'PVGCYP',
////'SINCYP',
////'TPECYP',
////'BKKCRM',
////'CANCRM',
////'HKGCRM',
////'CGKCRM',
////'BKICRM',
////'KULCRM',
////'MFMCRM',
////'SGNCRM',
////'PVGCRM',
////'SINCRM',
////'TPECRM',
////'BKIMPH',
////'SGNMPH',
////'TPEMPH',
////'BKKCYZ',
////'CANCYZ',
////'HKGCYZ',
////'CGLCYZ',
////'BKICYZ',
////'KULCYZ',
////'MFMCYZ',
////'SGNCYZ',
////'PVGCYZ',
////'SINCYZ',
////'TPRCYZ',
////'BKICEB',
////'MFMCEB',
////'SGNCEB',
////'PVGCEB',
////'CANCBO',
////'HKGCBO',
////'CGKCBO',
////'BKICBO',
////'MFMCBO',
////'SGNCBO',
////'TPECBO',
////'BKIDVO',
////'SGNDVO',
////'CANDPL',
////'HKGDPL',
////'CGKDPL',
////'BKIDPL',
////'MFMDPL',
////'SGNDPL',
////'TPEDPL',
////'BKKDGT',
////'CANDGT',
////'CGKDGT',
////'BKIDGT',
////'KULDGT',
////'MFMDGT',
////'SGNDGT',
////'PVGDGT',
////'SINDGT',
////'TPEDGT',
////'CANGES',
////'HKGGES',
////'BKIGES',
////'MFMGES',
////'SGNGES',
////'PVGGES',
////'SINGES',
////'TPEGES',
////'BKKILO',
////'CANILO',
////'CGKILO',
////'BKIILO',
////'KULILO',
////'MFMILO',
////'SGNILO',
////'PVGILO',
////'SINILO',
////'TPEILO',
////'CANKLO',
////'HKGKLO',
////'BKIKLO',
////'MFMKLO',
////'SGNKLO',
////'PVGKLO',
////'SINKLO',
////'TPEKLO',
////'BKKLAO',
////'CANLAO',
////'HKGLAO',
////'BKILAO',
////'KULLAO',
////'MFMLAO',
////'SGNLAO',
////'TPELAO',
////'CANLGP',
////'HKGLGP',
////'BKILGP',
////'MFMLGP',
////'SGNLGP',
////'PVGLGP',
////'SINLGP',
////'TPELGP',
////'BKKWNP',
////'CANWNP',
////'HKGWNP',
////'CGKWNP',
////'BKIWNP',
////'KULWNP',
////'MFMWNP',
////'SGNWNP',
////'PVGWNP',
////'SINWNP',
////'TPEWNP',
////'BKKPPS',
////'CANPPS',
////'CGKPPS',
////'BKIPPS',
////'KULPPS',
////'MFMPPS',
////'SGNPPS',
////'PVGPPS',
////'SINPPS',
////'TPEPPS',
////'BKKRXS',
////'CANRXS',
////'RXSHKG',
////'BKIRXS',
////'MFMRXS',
////'SGNRXS',
////'TPERXS',
////'BKISJI',
////'CANSJI',
////'HKGSJI',
////'CGKSJI',
////'BKISJI',
////'KULSJI',
////'MFMSJI',
////'SGNSJI',
////'PVGSJI',
////'SINSJI',
////'TPESJI',
////'HKGTAC',
////'BKITAC',
////'SGNTAC',
////'TPETAC',
////'HKGTAG',
////'BKITAG',
////'SGNTAG',
////'TPETAG',
////'BKKTUG',
////'CANTUG',
////'HKGTUG',
////'CGKTUG',
////'BKITUG',
////'KULTUG',
////'MFMTUG',
////'SGNTUG',
////'PVGTUG',
////'SINTUG',
////'TPETUG',
////'BKKVRC',
////'CANVRC',
////'HKGVRC',
////'CGKVRC',
////'BKIVRC',
////'KULVRC',
////'MFMVRC',
////'SGNVRC',
////'PVGVRC',
////'SINVRC',
////'TPEVRC',
////'BKKZAM',
////'HKGZAM',
////'CGKZAM',
////'BKIZAM',
////'KULZAM',
////'SGNZAM',
////'PVGZAM',
////'SINZAM',
////'TPEZAM',
////'BKKCAN',
////'CANBKK',
////'BKKCGK',
////'CGKBKK',
////'BKKBKI',
////'BKIBKK',
////'BKKKUL',
////'KULBKK',
////'BKKMFM',
////'MFMBKK',
////'BKKKIX',
////'KIXBKK',
////'BKKSGN',
////'SGNBKK',
////'BKKPVG',
////'PVGBKK',
////'BKKSIN',
////'SINBKK',
////'CANHKG',
////'HKGCAN',
////'CANCGK',
////'CGKCAN',
////'CANBKI',
////'BKICAN',
////'CANKUL',
////'KULCAN',
////'CANMFM',
////'MFMCAN',
////'CANKIX',
////'KIXCAN',
////'CANSGN',
////'SGNCAN',
////'CANPVG',
////'PVGCAN',
////'CANSIN',
////'SINCAN',
////'CANTPE',
////'TPECAN',
////'HKGCGK',
////'CGKHKG',
////'HKGBKI',
////'BKIHKG',
////'HKGKUL',
////'KULHKG',
////'HKGMFM',
////'MFMHKG',
////'HKGSGN',
////'SGNHKG',
////'HKGPVG',
////'PVGHKG',
////'HKGSIN',
////'SINHKG',
////'HKGTPE',
////'TPEHKG',
////'CGKBKI',
////'BKICGK',
////'CGKKUL',
////'KULCGK',
////'CGKMFM',
////'MFMCGK',
////'CGKSGN',
////'SGNCGK',
////'CGKPVG',
////'PVGCGK',
////'CGKSIN',
////'SINCGK',
////'BKIKUL',
////'KULBKI',
////'BKIMFM',
////'MFMBKI',
////'BKISGN',
////'SGNBKI',
////'BKIPVG',
////'PVGBKI',
////'BKISIN',
////'SINBKI',
////'BKITPE',
////'TPEBKI',
////'KULMFM',
////'MFMKUL',
////'KULSGN',
////'SGNKUL',
////'KULSGN',
////'SGNKUL',
////'KULPVG',
////'PVGKUL',
////'KULSIN',
////'SINKUL',
////'KULTPE',
////'TPEKUL',
////'MFMSGN',
////'SGNMFM',
////'MFMPVG',
////'PVGMFM',
////'MFMSIN',
////'SINMFM',
////'MFMTPE',
////'TPEMFM',
////'SGNPVG',
////'PVGSGN',
////'SGNSIN',
////'SINSGN',
////'SGNTPE',
////'TPESGN',
////'PVGSIN',
////'SINPVG',
////'PVGTPE',
////'TPEPVG',
////'SINTPE',
////'TPESIN'


// ================================================
var xnow = new Date();
var xday = xnow.getDate() + 1;
var xmonth = 1 //xnow.getMonth()+1; // numbered from 0
var xyear = xnow.getYear();
if (xyear < 1900) xyear += 1900; // or use getFullYear() in v4 browsers
/* comment the following line out to remove the display of date */
//document.write(now.toString()+'<br>'+year+'/'+month+'/'+day);

function setDrops() {
    // I assume Day and months are all there and start with "Select a Day and Select a month
    document.form._depday.selectedIndex = xday;
    document.form._depmonthyear.selectedIndex = xmonth;
    document.form._retday.selectedIndex = xday;
    document.form._retmonthyear.selectedIndex = xmonth;
}

function MM_openBrWindow(theURL, winName, features) { //v2.0
    var popup = window.open(theURL, winName, features);
    if (!popup.opener)
        popup.opener = self;
}

function showmsg() {
    //alert("We've just completed our refleeting program and our fleet age is now less than 1 year. To celebrate, we'll fly you to any of our domestic or international destinations for a fare of only P1.00! This is non-refundable and exclusive of applicable taxes, fees and surcharges.  Please read the complete fare rules before confirming your payment.  Please also note that changes to your bookings will have to be made via our ticket offices.");
    return true;
}

//-->

function alert1() {
    //alert('hello');
    //alert(document.form._adults.value);
    //return false;
}

function chknumDays(y, m) {
    return (m == 3 || m == 5 || m == 8 || m == 10) ? 30 : ((m == 1) && (((y % 4 == 0) && y % 100 != 0) || y % 400 == 0)) ? 29 : (m == 1) ? 28 : 31;
}


function logIn(username, password) {


    var loginHolder = document.createElement("div");
    loginHolder.name = "logInPlaceHolder";
    loginHolder.id = "logInPlaceHolder";

    var eventTarget = document.createElement("input");
    eventTarget.type = "hidden";
    eventTarget.name = "__EVENTTARGET";
    eventTarget.id = "__EVENTTARGET";
    eventTarget.value = "ControlGroupLoginAgentView$AgentLoginView$LinkButtonLogIn";
    loginHolder.appendChild(eventTarget);

    //<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="">
    var eventArgument = document.createElement("input");
    eventArgument.type = "hidden";
    eventArgument.name = "__EVENTARGUMENT";
    eventArgument.id = "__EVENTARGUMENT";
    eventArgument.value = "";
    loginHolder.appendChild(eventArgument);

    //<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUBMGRkUahpmA9TwoxMieg3UIUbSewRUZk="> 
    var viewState = document.createElement("input");
    viewState.type = "hidden";
    viewState.name = "__VIEWSTATE";
    viewState.id = "__VIEWSTATE";
    viewState.value = ""; ///wEPDwUBMGRkUahpmA9TwoxMieg3UIUbSewRUZk=
    loginHolder.appendChild(viewState);

    var uname = username;
    var pword = password;

    loginHolder = prepopulateLoginControlValues(loginHolder, uname, pword);

    var LogInDiv = document.getElementById("LogInDiv");
    //	alert("test222");
    LogInDiv.appendChild(loginHolder);


}


function prepopulateLoginControlValues(logInHolder, username, password) {



    var UsernameControl = document.createElement("input");
    UsernameControl.type = "hidden";
    UsernameControl.name = "ControlGroupLoginAgentView$AgentLoginView$TextBoxUserID";
    UsernameControl.id = "ControlGroupLoginAgentView_AgentLoginView_TextBoxUserID";
    UsernameControl.value = username;
    logInHolder.appendChild(UsernameControl);

    var PasswordControl = document.createElement("input");
    PasswordControl.type = "hidden";
    PasswordControl.name = "ControlGroupLoginAgentView$AgentLoginView$PasswordFieldPassword";
    PasswordControl.id = "ControlGroupLoginAgentView_AgentLoginView_PasswordFieldPassword";
    PasswordControl.value = password;
    logInHolder.appendChild(PasswordControl);

    return logInHolder


}







//Riza
//corp to IBE
function test(adults, children, infants, triptype) {
    //alert("test ");
}
function SimulateFlightSearch(adults, children, infants, triptype, origin, destination, depday, depmonthyear, retday, retmonthyear) {

    if (triptype == null) {
        if (document.form._tripType[0].checked === true) {
            triptype = document.form._tripType[0].value;
        } else {
            triptype = document.form._tripType[1].value;
        }
    }

    // alert("triptype: " + triptype + "origin: " + origin + "destination: " + destination + "depday" + depday
    //          + "depmonthyear: " + depmonthyear + "retday: " + retday + "retmonthyear" + retmonthyear
    //          + "adults: " + adults + "children: " + children + "infants: " + infants);		

    // if (origin == '') {
        // alert("Please select a departure city.");
        // return false;
    // }

    // if (destination == '') {
        // alert("Please select an arrival city.");
        // return false;
    // }
	
	
	if (origin == '') {
        document.getElementById("errorbox").innerHTML = 'Please select a departure city';
        document.getElementById("errorbox").style.paddingBottom = "14px";
	   document.getElementById("errorbox").style.height = "20px";
        return false;
    }

    if (destination == '') {
        document.getElementById("errorbox").innerHTML = 'Please select an arrival city.';
        document.getElementById("errorbox").style.paddingBottom = "14px";
	     document.getElementById("errorbox").style.height = "20px";
        return false;
    }

    var dtnow = new Date();
    dtnow_day = dtnow.getDate();
    dtnow_yr = dtnow.getFullYear();
    dtnow_mon = dtnow.getMonth() + 1;

    //	var dt1= depmonthyear.split('-');
    //	if (depday>numDays(dt1[0],(dt1[1])-1) || (depday=='') || depmonthyear =='')  {
    //		alert('Departure date is invalid!');
    //		return false;
    //	}	
    //	
    //	var dt2= retmonthyear.split('-');
    //	if (retday>numDays(dt2[0],(dt2[1])-1))  {
    //		alert('Return date is invalid!');
    //		return false;
    //	}

    //	if (depday==dtnow_day && dt1[0]==dtnow_yr && dt1[1]==dtnow_mon) {
    //		alert('Internet bookings are not permitted within 23 hours 59 minutes from the scheduled time of departure. \n\nIf you wish to travel within the next 23 hours and 59 minutes, you may call our Call Center to check the availability of your preferred flight. \n\nClick "OK" if you wish to check the availability and book for a flight outside of 23 hours and 59 minutes from the schedule time of departure.\n\n');
    //		//return false;
    //	}
    //	else 
    //		if (retday==dtnow_day && dt2[0]==dtnow_yr && dt2[1]==dtnow_mon) {
    //			alert('Internet bookings are not permitted within 23 hours 59 minutes from the scheduled time of departure. \n\nIf you wish to travel within the next 23 hours and 59 minutes, you may call our Call Center to check the availability of your preferred flight. \n\nClick "OK" if you wish to check the availability and book for a flight outside of 23 hours and 59 minutes from the schedule time of departure.\n\n');
    //			//return false;
    //		}
	
	// if (depday == dtnow_day && depmonthyear.substring(0, 4) == dtnow_yr && depmonthyear.substring(5) == dtnow_mon) {
       // document.getElementById("errorbox").innerHTML = 'Internet bookings are not permitted within 23 hours 59 minutes from the scheduled time of departure. If you wish to travel within the next 23 hours and 59 minutes, you may call our Call Center to check the availability of your preferred flight.'
       // document.getElementById("errorbox").style.paddingBottom = "14px";
       // document.getElementById("errorbox").style.height = "20px";
       // return false;
   // }
    //else
      //  if (!document.form._tripType[1].checked == true) {
        //    if (retday == dtnow_day && retmonthyear.substring(0, 4) == dtnow_yr && retmonthyear.substring(5) == dtnow_mon) {
          //      document.getElementById("errorbox").innerHTML = 'Internet bookings are not permitted within 23 hours 59 minutes from the scheduled time of departure. If you wish to travel within the next 23 hours and 59 minutes, you may call our Call Center to check the availability of your preferred flight.'
          //      document.getElementById("errorbox").style.paddingBottom = "14px";
          //      document.getElementById("errorbox").style.height = "20px";
         //       return false;
       // }
    		
  //  }
	//else
	//{
	//	 document.getElementById("errorbox").innerHTML = '';
    	//	 document.getElementById("errorbox").style.paddingBottom = "0px";
	//	 document.getElementById("errorbox").style.height = "0px";
//	}
	
	// if (depday==dtnow_day && depmonthyear.substring(0,4)==dtnow_yr && depmonthyear.substring(5) ==dtnow_mon) {
    		// alert('Internet bookings are not permitted within 23 hours 59 minutes from the scheduled time of departure. \n\nIf you wish to travel within the next 23 hours and 59 minutes, you may call our Call Center to check the availability of your preferred flight. \n\nClick "OK" if you wish to check the availability and book for a flight outside of 23 hours and 59 minutes from the schedule time of departure.\n\n');
    		// return false;
    	// }
    	// else 
    		// if (retday==dtnow_day && retmonthyear.substring(0,4)==dtnow_yr && retmonthyear.substring(5)==dtnow_mon) {
    			// alert('Internet bookings are not permitted within 23 hours 59 minutes from the scheduled time of departure. \n\nIf you wish to travel within the next 23 hours and 59 minutes, you may call our Call Center to check the availability of your preferred flight. \n\nClick "OK" if you wish to check the availability and book for a flight outside of 23 hours and 59 minutes from the schedule time of departure.\n\n');
    			// return false;
    		// }

    //	if (parseInt(infants)>0){
    //		alert('Reminder: Infant(s) must be more than 16 days and under 24 months at date(s) of travel.');
    //	}

    //	var reminderUMNR='\nAre you booking for an Unaccompanied Minor?  Please note the following reminders: Children aged 7 to below 12 years old may be accommodated on the flight provided that they pay the UM Handling Fee at point of booking and furnish us with the complete necessary documents. The UM form may be downloaded on this website under \"Useful Travel Info\" section.\n\n';
    //        reminderUMNR+='\nIf you intend to book for a child with an accompanying adult, please do not proceed with this booking session.  Kindly restart your booking and book the child and adult together in one transaction.  Thank you.\n\n';

    //	if ((parseInt(children)==1) && (parseInt(adults) <1)) 
    //	{
    //	    alert(reminderUMNR);
    //	}


    //	var msg = '';
    //	var BKIlist = 'BKI';
    //	if (BKIlist.indexOf(origin)>-1 || BKIlist.indexOf(destination)>-1) {
    //		msg = 'Please be advised that Cebu Pacific is operating from Terminal 2, Kota Kinabalu International Airport, Old Airport Road, 88100 Tanjung Aru. Kota Kinabalu, Sabah Malaysia.\n\n';
    //	}
    //	
    //	var T3list = 'MNL';
    //	//*********** Edited By Allan Montesa Remove PopUp*****
    //	//*****************************************************
    ////	if (T3list.indexOf(origin)>-1 || T3list.indexOf(destination)>-1) {
    ////		alert(T3list.indexOf(origin));
    ////		alert('Cebu Pacific flights to and from Caticlan, Laoag, Tuguegarao, Naga and San Jose will operate at the Ninoy Aquino International Airport – Terminal 3 along Andrews Ave., Pasay City starting July 22, 2008.');
    ////		alert(msg+'Please be advised that all Cebu Pacific domestic and international flights will operate at Ninoy Aquino 		International Airport Terminal 3 along Andrews Ave., Pasay City.');
    ////	}
    //	
    //	//if (popalert()==false) return false;	
    //	
    //	//Origin1=CGY&Destination1=MNL&Day1=26&MonthYear1=2008-03&Day2=30&MonthYear2=2008-03&RadioButtonMarketStructure=RoundTrip
    //    
    //    //TODO: Retrieve this from CebuPacificAir search control
    //    var d=document.form;
    //    for( i = 0; i < d._tripType.length; i++ )    {
    //    if(d._tripType[i].checked == true )
    //     tripType = d._tripType[i].value;
    //    }
    //	//alert("adults="+adults+"children="+children+"infants="+infants+"triptype="+tripType+"origin="+origin+"destination="+destination+"depday="+depday+"depmonthyear="+depmonthyear+"retday="+retday+"retmonthyear="+retmonthyear);
    //	//alert(tripType);
    //	
    //	if ((tripType=='RoundTrip') && (retday=='' || retmonthyear =='')){
    //		alert('Please select a return date.');
    //		return false;
    //	}

    //	var RadioButtonMarketStructure = 'OneWay'; //RoundTrip; OneWay
    //    var Origin1 = 'MNL';
    //    var Destination1 = 'RXS';
    //    var Day1 = '21';                //DD
    //    var MonthYear1 = '2010-03';    //YYYY-MM
    //    var Day2 = '';
    //    var MonthYear2 = '';  
    //    var AdultCount = '1';
    //    var ChildCount = '0';
    //    var InfantCount = '0';
    //    var faretype1 = 'P';

    var RadioButtonMarketStructure = triptype; //RoundTrip; OneWay
    var Origin1 = origin;
    var Destination1 = destination;
    var Day1 = depday;                //DD
    var MonthYear1 = depmonthyear;    //YYYY-MM
    var Day2 = retday;
    var MonthYear2 = retmonthyear;
    var AdultCount = adults;
    var ChildCount = children;
    var InfantCount = infants;

    //   alert("triptype: " + triptype + "origin: " + origin + "destination: " + destination + "depday" + depday
    //          + "depmonthyear: " + depmonthyear + "retday: " + retday + "retmonthyear" + retmonthyear
    //          + "adults: " + adults + "children: " + children + "infants: " + infants);		

    //    if (faretype) 
    //		var faretype1="P" 
    //	else 
    //		var faretype1="R"

    //create a SkySales Search Form    
    //<form name="SkySales" method="post" action="Search.aspx" id="SkySales" ><div>
    var skySalesPlaceHolder = document.createElement("div");
    skySalesPlaceHolder.name = "skySalesPlaceHolder";
    skySalesPlaceHolder.id = "skySalesPlaceHolder";
    //skySalesPlaceHolder.method = "post";
    //skySalesPlaceHolder.action = "http://book.cebupacificair.com/Search.aspx";

    //<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="">
    var eventTarget = document.createElement("input");
    eventTarget.type = "hidden";
    eventTarget.name = "__EVENTTARGET";
    eventTarget.id = "__EVENTTARGET";
    eventTarget.value = "ControlGroupSearchView$AvailabilitySearchInputSearchView$LinkButtonNewSearch";
    skySalesPlaceHolder.appendChild(eventTarget);

    //<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="">
    var eventArgument = document.createElement("input");
    eventArgument.type = "hidden";
    eventArgument.name = "__EVENTARGUMENT";
    eventArgument.id = "__EVENTARGUMENT";
    eventArgument.value = "";
    skySalesPlaceHolder.appendChild(eventArgument);

    //<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUBMGRkUahpmA9TwoxMieg3UIUbSewRUZk="> 
    var viewState = document.createElement("input");
    viewState.type = "hidden";
    viewState.name = "__VIEWSTATE";
    viewState.id = "__VIEWSTATE";
    viewState.value = ""; ///wEPDwUBMGRkUahpmA9TwoxMieg3UIUbSewRUZk=
    skySalesPlaceHolder.appendChild(viewState);

    skySalesPlaceHolder = prepopulateAvailabilitySearchControlValues(skySalesPlaceHolder,
	                                                                    RadioButtonMarketStructure,
                                                                        Origin1,
                                                                        Destination1,
                                                                        Day1,
                                                                        MonthYear1,
                                                                        Day2,
                                                                        MonthYear2,
                                                                        AdultCount,
                                                                        ChildCount,
                                                                        InfantCount);



    //Submit form
    var SkySalesDiv = document.getElementById("SkySalesAvailabilitySearchDiv");
    //	alert("test222");
    SkySalesDiv.appendChild(skySalesPlaceHolder);
    //alert(SkySalesDiv);
    //document.getElementById("skySalesPlaceHolder").submit();


}

function prepopulateAvailabilitySearchControlValues(skySalesPlaceHolder,
                                                    RadioButtonMarketStructure,
                                                    Origin1,
                                                    Destination1,
                                                    Day1,
                                                    MonthYear1,
                                                    Day2,
                                                    MonthYear2,
                                                    AdultCount,
                                                    ChildCount,
                                                    InfantCount) {
    //RadioButtonMarketStructure
    var RadioButtonMarketStructureControl = document.createElement("input");
    RadioButtonMarketStructureControl.type = "hidden";
    RadioButtonMarketStructureControl.name = "ControlGroupSearchView$AvailabilitySearchInputSearchView$RadioButtonMarketStructure";
    RadioButtonMarketStructureControl.id = "ControlGroupSearchView_AvailabilitySearchInputSearchView_RadioButtonMarketStructure";
    RadioButtonMarketStructureControl.value = RadioButtonMarketStructure;
    skySalesPlaceHolder.appendChild(RadioButtonMarketStructureControl);

    //Origin1
    var Origin1Control = document.createElement("input");
    Origin1Control.type = "hidden";
    Origin1Control.name = "ControlGroupSearchView$AvailabilitySearchInputSearchView$TextBoxMarketOrigin1";
    Origin1Control.id = "ControlGroupSearchView_AvailabilitySearchInputSearchView_TextBoxMarketOrigin1";
    Origin1Control.value = Origin1;
    skySalesPlaceHolder.appendChild(Origin1Control);

    //Destination1
    var Destination1Control = document.createElement("input");
    Destination1Control.type = "hidden";
    Destination1Control.name = "ControlGroupSearchView$AvailabilitySearchInputSearchView$TextBoxMarketDestination1";
    Destination1Control.id = "ControlGroupSearchView_AvailabilitySearchInputSearchView_TextBoxMarketDestination1";
    Destination1Control.value = Destination1;
    skySalesPlaceHolder.appendChild(Destination1Control);

    //Day1
    var Day1Control = document.createElement("input");
    Day1Control.type = "hidden";
    Day1Control.name = "ControlGroupSearchView$AvailabilitySearchInputSearchView$DropDownListMarketDay1";
    Day1Control.id = "ControlGroupSearchView_AvailabilitySearchInputSearchView_DropDownListMarketDay1";
    Day1Control.value = Day1;
    skySalesPlaceHolder.appendChild(Day1Control);

    //MonthYear1
    var MonthYear1Control = document.createElement("input");
    MonthYear1Control.type = "hidden";
    MonthYear1Control.name = "ControlGroupSearchView$AvailabilitySearchInputSearchView$DropDownListMarketMonth1";
    MonthYear1Control.id = "ControlGroupSearchView_AvailabilitySearchInputSearchView_DropDownListMarketMonth1";
    MonthYear1Control.value = MonthYear1;
    skySalesPlaceHolder.appendChild(MonthYear1Control);

    //Day2
    var Day2Control = document.createElement("input");
    Day2Control.type = "hidden";
    Day2Control.name = "ControlGroupSearchView$AvailabilitySearchInputSearchView$DropDownListMarketDay2";
    Day2Control.id = "ControlGroupSearchView_AvailabilitySearchInputSearchView_DropDownListMarketDay2";
    Day2Control.value = Day2;
    skySalesPlaceHolder.appendChild(Day2Control);

    //MonthYear2
    var MonthYear2Control = document.createElement("input");
    MonthYear2Control.type = "hidden";
    MonthYear2Control.name = "ControlGroupSearchView$AvailabilitySearchInputSearchView$DropDownListMarketMonth2";
    MonthYear2Control.id = "ControlGroupSearchView_AvailabilitySearchInputSearchView_DropDownListMarketMonth2";
    MonthYear2Control.value = MonthYear2;
    skySalesPlaceHolder.appendChild(MonthYear2Control);

    //ADT
    var AdultCountField = document.createElement("input");
    AdultCountField.type = "hidden";
    AdultCountField.name = "ControlGroupSearchView$AvailabilitySearchInputSearchView$DropDownListPassengerType_ADT";
    AdultCountField.id = AdultCountField.name.replace("$", "_");
    AdultCountField.value = AdultCount;
    skySalesPlaceHolder.appendChild(AdultCountField);

    //CHD
    var ChildCountField = document.createElement("input");
    ChildCountField.type = "hidden";
    ChildCountField.name = "ControlGroupSearchView$AvailabilitySearchInputSearchView$DropDownListPassengerType_CHD";
    ChildCountField.id = ChildCountField.name.replace("$", "_");
    ChildCountField.value = ChildCount;
    skySalesPlaceHolder.appendChild(ChildCountField);

    //INFANT
    var InfantCoundField = document.createElement("input");
    InfantCoundField.type = "hidden";
    InfantCoundField.name = "ControlGroupSearchView$AvailabilitySearchInputSearchView$DropDownListPassengerType_INFANT";
    InfantCoundField.id = InfantCoundField.name.replace("$", "_");
    InfantCoundField.value = InfantCount;
    skySalesPlaceHolder.appendChild(InfantCoundField);

    //Go-lite faretype
    //	var FareTypesControl = document.createElement("input");
    //	FareTypesControl.type = "hidden";
    //	FareTypesControl.name = "AvailabilitySearchInputSearchView$DropDownListFareTypes";
    //	FareTypesControl.id = "AvailabilitySearchInputSearchView_DropDownListFareTypes";
    //	FareTypesControl.value = faretype1;
    //	skySalesPlaceHolder.appendChild(FareTypesControl);

    return skySalesPlaceHolder;
}

function ftype_msg() {
//   var cbxGoLite = document.getElementById("_faretype");  ---- Febraury 24: Temporarily commented due to error
    var ddlDeparture = document.getElementById("ddOrigin");
    var ddlArrival = document.getElementById("ddDestination");
    
//------------------------------- Febraury 24: Temporarily commented due to error
//    if (cbxGoLite.checked) {
//        if (ddlDeparture.value == "KIX" || ddlArrival.value == "KIX") {
//            alert("Please be advised that Go lite fares are temporarily unavailable for Osaka. Please restart your booking and uncheck the check box fo Go lite option.");
//            cbxGoLite.checked = false;
//        }
//        else {
//            alert("Go Lite fares are for guests traveling with no checked-in bags.  With this fare, you will enjoy a P100 discount per flight per guest.  You may still bring your hand-carried item (carry-on bag) not exceeding 7kgs.  If you purchase a Go Lite fare and decide to check-in your bag at the airport, you will be charged a P400 Baggage reinstatement fee for a checked bag up to 15kg.  Standard excess baggage rates apply for anything in excess of 15kgs. Click OK to Continue with your booking or untick the box if you\'ll choose Go Fare instead of Go Lite.");
//        }
//    }
    //------------------------------- Febraury 24: Temporarily commented due to error


    //	    if ( form._faretype.checked && form.ddOrigin.value != "KIX" && form.ddDestination.value != "KIX" )
    //	    {
    //		    alert("Go Lite fares are for guests traveling with no checked-in bags.  With this fare, you will enjoy a P200 discount per flight per guest.  You may still bring your hand-carried item (carry-on bag) not exceeding 7kgs.  If you purchase a Go Lite fare and decide to check-in your bag at the airport, you will be charged a P400 Baggage reinstatement fee for a checked bag up to 15kg.  Standard excess baggage rates apply for anything in excess of 15kgs. Click OK to Continue with your booking or untick the box if you\'ll choose Go Fare instead of Go Lite.");
    //	        //alert(form.ddOrigin.value);
    //	    }
    //	    
    //        if( (form.ddOrigin.value == "KIX") || (form.ddDestination.value == "KIX") )
    //        {
    //            alert("Please be advised that Go lite fares are temporarily unavailable for Osaka. Please restart your booking and uncheck the check box fo Go lite option.");
    //            form._faretype.checked = false;
    //        }

    // if(form.ddOrigin.value == "KIX")
    //	 {
    //    alert('Please be advised that Go lite fares are temporarily unavailable for Osaka.  Please restart your booking and uncheck the check box fo Go lite option.
    //');
    //	 }
}

function ftype_msg1() {
    alert('Go Lite fares are for guests traveling with no checked-in bags.  With this fare, you will enjoy a P100 discount per flight per guest.  You may still bring your hand-carried item (carry-on bag) not exceeding 7kgs.  If you purchase a Go Lite fare and decide to check-in your bag at the airport, you will be charged a P300 Baggage reinstatement fee for a checked bag up to 15kg.  Standard excess baggage rates apply for anything in excess of 15kgs. Click OK to Continue with your booking or untick the box if you\'ll choose Go Fare instead of Go Lite.');
}

function openSSR() {
    MM_openBrWindow('http://book.cebupacificair.com/PopupSsr_View1.aspx', 'bookingSSR', 'left=300,top=30,scrollbars=yes,resizable=no,width=550,height=600');
}
//end corp to IBE

document.writeln('<div class="left">');
document.writeln('<div id="tabs">');
document.writeln('<ul>');
document.writeln('<li><a class="flighttab" href="#tabs-1">Flights</a></li>');
document.writeln('<li><a class="tourstab" onclick=gotoLink("http://funtours.cebupacificair.com")>Tours</a></li>');
document.writeln('<li><a class="hotelstab" onclick=gotoLink("http://funtours.cebupacificair.com/travel/arc.cfm?tab=r")>Hotels</a></li>');
document.writeln('</ul>');
document.writeln('<div id="tabs-1">');
// document.writeln('<form action="#">');
document.writeln('<form id="form" name="form" method="post" action="http://book.cebupacificair.com/Search.aspx">');

//Start-Change for Availability Search Control design
document.writeln('<div class="halfrdobtn">');
//End-Change for Availability Search Control design

document.writeln('<div class="half">');
document.writeln('<input name="_tripType" type="radio" value="RoundTrip" checked onClick="javascript:enableReturnDate();javascript:setDateFromDate();javascript:setDateToDate();" />Round Trip');
document.writeln('</div>');
document.writeln('<div class="half">');
document.writeln('<input name="_tripType" type="radio" value="OneWay" onClick="javascript:disableReturnDate();" />One way');
document.writeln('</div>');

//Start-Change for Availability Search Control design
document.writeln('</div>');
//End-Change for Availability Search Control design


document.writeln('<div class="full">');
document.writeln('<select name="ddOrigin" id="ddOrigin" onchange="populateDestinations(\'ddOrigin\')">');
document.writeln('<option value="" style="padding-left: 0px;font: bold 12px Arial;color:black; font-weight:bold">Origin</option>');
document.writeln('<optgroup class="countryGroup" label="DOMESTIC">');
document.writeln('<option class="cities" value="BCD">Bacolod</option>');
document.writeln('<option class="cities" value="MPH">Boracay (Caticlan)</option>');
document.writeln('<option class="cities" value="BXU">Butuan</option>');
document.writeln('<option class="cities" value="CGY">Cagayan de Oro</option>');
document.writeln('<option class="cities" value="CYP">Calbayog</option>');
document.writeln('<option class="cities" value="CRM">Catarman</option>');
document.writeln('<option class="cities" value="CYZ">Cauayan</option>');
document.writeln('<option class="cities" value="CEB">Cebu</option>');
document.writeln('<option class="cities" value="CRK">Clark</option>');
document.writeln('<option class="cities" value="USU">Coron (Busuanga)</option>');
document.writeln('<option class="cities" value="CBO">Cotabato</option>');
document.writeln('<option class="cities" value="DVO">Davao</option>');
document.writeln('<option class="cities" value="DPL">Dipolog</option>');
document.writeln('<option class="cities" value="DGT">Dumaguete</option>');
document.writeln('<option class="cities" value="GES">General Santos</option>');
document.writeln('<option class="cities" value="ILO">Iloilo</option>');
document.writeln('<option class="cities" value="KLO">Kalibo</option>');
document.writeln('<option class="cities" value="LAO">Laoag</option>');
document.writeln('<option class="cities" value="LGP">Legaspi</option>');
document.writeln('<option class="cities" value="MNL">Manila</option>');
document.writeln('<option class="cities" value="WNP">Naga</option>');
document.writeln('<option class="cities" value="OZC">Ozamiz</option>');
document.writeln('<option class="cities" value="PAG">Pagadian</option>');
document.writeln('<option class="cities" value="PPS">Puerto Princesa</option>');
document.writeln('<option class="cities" value="RXS">Roxas</option>');
document.writeln('<option class="cities" value="SJI">San Jose (Mindoro)</option>');
document.writeln('<option class="cities" value="IAO">Siargao</option>');
document.writeln('<option class="cities" value="SUG">Surigao</option>');
document.writeln('<option class="cities" value="TAC">Tacloban</option>');
document.writeln('<option class="cities" value="TAG">Tagbilaran</option>');
document.writeln('<option class="cities" value="TUG">Tuguegarao</option>');
document.writeln('<option class="cities" value="VRC">Virac</option>');
document.writeln('<option class="cities" value="ZAM">Zamboanga</option>');
document.writeln('</optgroup>');
document.writeln('<optgroup class="countryGroup" label="INTERNATIONAL">');
document.writeln('<option class="cities" value="BWN">Bandar Seri Begawan (Brunei)</option>');
document.writeln('<option class="cities" value="BKK">Bangkok</option>');
document.writeln('<option class="cities" value="PEK">Beijing</option>');
document.writeln('<option class="cities" value="PUS">Busan</option>');
document.writeln('<option class="cities" value="CAN">Guangzhou (Canton)</option>');
document.writeln('<option class="cities" value="HKG">HongKong</option>');
document.writeln('<option class="cities" value="ICN">Incheon</option>');
document.writeln('<option class="cities" value="CGK">Jakarta</option>');
document.writeln('<option class="cities" value="BKI">Kota Kinabalu</option>');
document.writeln('<option class="cities" value="KUL">Kuala Lumpur</option>');
document.writeln('<option class="cities" value="MFM">Macau</option>');
document.writeln('<option class="cities" value="KIX">Osaka (Kansai)</option>');
//document.writeln('<option class="cities" value="SGN">Saigon</option>');
document.writeln('<option class="cities" value="SGN">Ho Chi Minh</option>');
document.writeln('<option class="cities" value="PVG">Shanghai</option>');
document.writeln('<option class="cities" value="SIN">Singapore</option>');
document.writeln('<option class="cities" value="TPE">Taipei</option>');
document.writeln('</optgroup>');
document.writeln('</select>');
document.writeln('</div>');
document.writeln('<div class="full" id="ddDestination1">');
document.writeln('<select name="ddDestination" id="ddDestination" onchange=" CheckArrivalCity(\'ddDestination\')">');
document.writeln('<option value="" style="padding-left: 0px;font: bold 12px Arial;color:black; font-weight:bold">Destination</option>');
document.writeln('<optgroup class="countryGroup" label="DOMESTIC">');
document.writeln('<option class="cities" value="BCD">Bacolod</option>');
document.writeln('<option class="cities" value="MPH">Boracay (Caticlan)</option>');
document.writeln('<option class="cities" value="BXU">Butuan</option>');
document.writeln('<option class="cities" value="CGY">Cagayan de Oro</option>');
document.writeln('<option class="cities" value="CYP">Calbayog</option>');
document.writeln('<option class="cities" value="CRM">Catarman</option>');
document.writeln('<option class="cities" value="CYZ">Cauayan</option>');
document.writeln('<option class="cities" value="CEB">Cebu</option>');
document.writeln('<option class="cities" value="CRK">Clark</option>');
document.writeln('<option class="cities" value="USU">Coron (Busuanga)</option>');
document.writeln('<option class="cities" value="CBO">Cotabato</option>');
document.writeln('<option class="cities" value="DVO">Davao</option>');
document.writeln('<option class="cities" value="DPL">Dipolog</option>');
document.writeln('<option class="cities" value="DGT">Dumaguete</option>');
document.writeln('<option class="cities" value="GES">General Santos</option>');
document.writeln('<option class="cities" value="ILO">Iloilo</option>');
document.writeln('<option class="cities" value="KLO">Kalibo</option>');
document.writeln('<option class="cities" value="LAO">Laoag</option>');
document.writeln('<option class="cities" value="LGP">Legaspi</option>');
document.writeln('<option class="cities" value="MNL">Manila</option>');
document.writeln('<option class="cities" value="WNP">Naga</option>');
document.writeln('<option class="cities" value="OZC">Ozamiz</option>');
document.writeln('<option class="cities" value="PAG">Pagadian</option>');
document.writeln('<option class="cities" value="PPS">Puerto Princesa</option>');
document.writeln('<option class="cities" value="RXS">Roxas</option>');
document.writeln('<option class="cities" value="SJI">San Jose (Mindoro)</option>');
document.writeln('<option class="cities" value="IAO">Siargao</option>');
document.writeln('<option class="cities" value="SUG">Surigao</option>');
document.writeln('<option class="cities" value="TAC">Tacloban</option>');
document.writeln('<option class="cities" value="TAG">Tagbilaran</option>');
document.writeln('<option class="cities" value="TUG">Tuguegarao</option>');
document.writeln('<option class="cities" value="VRC">Virac</option>');
document.writeln('<option class="cities" value="ZAM">Zamboanga</option>');
document.writeln('</optgroup>');
document.writeln('<optgroup class="countryGroup" label="INTERNATIONAL">');
document.writeln('<option class="cities" value="BWN">Bandar Seri Begawan (Brunei)</option>');
document.writeln('<option class="cities" value="BKK">Bangkok</option>');
document.writeln('<option class="cities" value="PEK">Beijing</option>');
document.writeln('<option class="cities" value="PUS">Busan</option>');
document.writeln('<option class="cities" value="CAN">Guangzhou (Canton)</option>');
document.writeln('<option class="cities" value="HKG">HongKong</option>');
document.writeln('<option class="cities" value="ICN">Incheon</option>');
document.writeln('<option class="cities" value="CGK">Jakarta</option>');
document.writeln('<option class="cities" value="BKI">Kota Kinabalu</option>');
document.writeln('<option class="cities" value="KUL">Kuala Lumpur</option>');
document.writeln('<option class="cities" value="MFM">Macau</option>');
document.writeln('<option class="cities" value="KIX">Osaka (Kansai)</option>');
//document.writeln('<option class="cities" value="SGN">Saigon</option>');
document.writeln('<option class="cities" value="SGN">Ho Chi Minh</option>');
document.writeln('<option class="cities" value="PVG">Shanghai</option>');
document.writeln('<option class="cities" value="SIN">Singapore</option>');
document.writeln('<option class="cities" value="TPE">Taipei</option>');
document.writeln('</optgroup>');
document.writeln('</select>');
document.writeln('</div>');

//Start-Change for Availability Search Control design
// place <p> in div containing date selector
// comment out this original portion

//document.writeln('<div class="full">');
//document.writeln('<p>Departure Date:</p>');
//document.writeln('</div>');


//End-Change for Availability Search Control design

document.writeln('<div class="full">');
document.writeln('<p>Departure Date:</p>');
document.writeln('<div class="selectbox third">');
document.writeln('<select id="wdfday1" name="_depday" onchange="dayChanged(1,0)">');
// document.writeln('<select id="wdfday1" name="_depday" onchange="dayChanged(1,0)">');
//Edited due to error in common.js- getDropdowns(obj)
// document.writeln('<select id="wdfday1" name="_depday" onchange="dayChanged(1,0)">');
document.writeln('<option value="1">1</option>');
document.writeln('<option value="2">2</option>');
document.writeln('<option value="3">3</option>');
document.writeln('<option value="4">4</option>');
document.writeln('<option value="5">5</option>');
document.writeln('<option value="6">6</option>');
document.writeln('<option value="7">7</option>');
document.writeln('<option value="8">8</option>');
document.writeln('<option value="9">9</option>');
document.writeln('<option value="10">10</option>');
document.writeln('<option value="11">11</option>');
document.writeln('<option value="12">12</option>');
document.writeln('<option value="13">13</option>');
document.writeln('<option value="14">14</option>');
document.writeln('<option value="15">15</option>');
document.writeln('<option value="16">16</option>');
document.writeln('<option value="17">17</option>');
document.writeln('<option value="18">18</option>');
document.writeln('<option value="19">19</option>');
document.writeln('<option value="20">20</option>');
document.writeln('<option value="21">21</option>');
document.writeln('<option value="22">22</option>');
document.writeln('<option value="23">23</option>');
document.writeln('<option value="24">24</option>');
document.writeln('<option value="25">25</option>');
document.writeln('<option value="26">26</option>');
document.writeln('<option value="27">27</option>');
document.writeln('<option value="28">28</option>');
document.writeln('<option value="29">29</option>');
document.writeln('<option value="30">30</option>');
document.writeln('<option value="31">31</option>');
document.writeln('</select>');
document.writeln('</div>');

document.writeln('<span class="selectbox month">');
document.writeln('<select id="wdfmonthyear1" name="_depmonthyear" onchange="myChanged(1,0)">');
//document.writeln('<select id="departuremonth" name="_depmonthyear" onchange="myChanged(1,0)">');
//Edited due to error in common.js- getDropdowns(obj)
// document.writeln('<select id="wdfmonthyear1" name="_depmonthyear" onchange="myChanged(1,0)">');
//document.writeln('<option value="2010-01">Jan 10</option>');
//document.writeln('<option value="2010-02">Feb 10</option>');




document.writeln('<option value="2010-09">Sep 10</option>');
document.writeln('<option value="2010-10">Oct 10</option>');
document.writeln('<option value="2010-11">Nov 10</option>');
document.writeln('<option value="2010-12">Dec 10</option>');
document.writeln('<option value="2011-01">Jan 11</option>');
document.writeln('<option value="2011-02">Feb 11</option>');
document.writeln('<option value="2011-03">Mar 11</option>');
document.writeln('<option value="2011-04">Apr 11</option>');
document.writeln('<option value="2011-05">May 11</option>');
document.writeln('<option value="2011-06">Jun 11</option>');
document.writeln('<option value="2011-07">Jul 11</option>');
document.writeln('<option value="2011-08">Aug 11</option>');
document.writeln('<option value="2011-09">Sept 11</option>');
document.writeln('</select>');
document.writeln('</span>');
document.writeln('<span class="dateicon">');
document.writeln('<input type="hidden" class="datepick" id="departure" name="departure"/>');
document.writeln('</span>');
document.writeln('</div>');

//Start-Change for Availability Search Control design
// place <p> in div containing date selector
// comment out this original portion

// document.writeln('<div  class="full">');
// document.writeln('<p>Return Date:</p>');
// document.writeln('</div>');


//End-Change for Availability Search Control design

document.writeln('<div id="retdate"  class="full">');
document.writeln('<p>Return Date:</p>');
document.writeln('<div class="selectbox third">');
document.writeln('<select id="wdfday2" name="_retday" onchange="dayChanged(2,0)">');
//document.writeln('<select id="returnday" name="_retday" onchange="dayChanged(2,0)">');
//Edited due to error in common.js- getDropdowns(obj)
//document.writeln('<select id="wdfday2" name="_retday" onchange="dayChanged(2,0)">');
document.writeln('<option value="1">1</option>');
document.writeln('<option value="2">2</option>');
document.writeln('<option value="3">3</option>');
document.writeln('<option value="4">4</option>');
document.writeln('<option value="5">5</option>');
document.writeln('<option value="6">6</option>');
document.writeln('<option value="7">7</option>');
document.writeln('<option value="8">8</option>');
document.writeln('<option value="9">9</option>');
document.writeln('<option value="10">10</option>');
document.writeln('<option value="11">11</option>');
document.writeln('<option value="12">12</option>');
document.writeln('<option value="13">13</option>');
document.writeln('<option value="14">14</option>');
document.writeln('<option value="15">15</option>');
document.writeln('<option value="16">16</option>');
document.writeln('<option value="17">17</option>');
document.writeln('<option value="18">18</option>');
document.writeln('<option value="19">19</option>');
document.writeln('<option value="20">20</option>');
document.writeln('<option value="21">21</option>');
document.writeln('<option value="22">22</option>');
document.writeln('<option value="23">23</option>');
document.writeln('<option value="24">24</option>');
document.writeln('<option value="25">25</option>');
document.writeln('<option value="26">26</option>');
document.writeln('<option value="27">27</option>');
document.writeln('<option value="28">28</option>');
document.writeln('<option value="29">29</option>');
document.writeln('<option value="30">30</option>');
document.writeln('<option value="31">31</option>');
document.writeln('</select>');
document.writeln('</div>');

document.writeln('<span class="selectbox month">');
document.writeln('<select id="wdfmonthyear2" name="_retmonthyear" onchange="myChanged(2,0)" >');
//document.writeln('<select id="returnmonth" name="_retmonthyear" onchange="myChanged(2,0)" >'); 
//Edited due to error in common.js- getDropdowns(obj)
//document.writeln('<select id="wdfmonthyear2" name="_retmonthyear" onchange="myChanged(2,0)" >');
//document.writeln('<option value="2010-01">Jan 10</option>');
//document.writeln('<option value="2010-02">Feb 10</option>');



document.writeln('<option value="2010-09">Sep 10</option>');
document.writeln('<option value="2010-10">Oct 10</option>');
document.writeln('<option value="2010-11">Nov 10</option>');
document.writeln('<option value="2010-12">Dec 10</option>');
document.writeln('<option value="2011-01">Jan 11</option>');
document.writeln('<option value="2011-02">Feb 11</option>');
document.writeln('<option value="2011-03">Mar 11</option>');
document.writeln('<option value="2011-04">Apr 11</option>');
document.writeln('<option value="2011-05">May 11</option>');
document.writeln('<option value="2011-06">Jun 11</option>');
document.writeln('<option value="2011-07">Jul 11</option>');
document.writeln('<option value="2011-08">Aug 11</option>');
document.writeln('<option value="2011-09">Sept 11</option>');
document.writeln('</select>');

document.writeln('</span>');
document.writeln('<span class="dateicon">');
document.writeln('<input type="hidden" class="datepick" id="return" name="return"/>');
document.writeln('</span>');
document.writeln('</div>');

document.writeln('<div class="full" id="ddSelector">');
document.writeln('<div class="third">');
document.writeln('<label for="adult">');
document.writeln('<span class="title">Adult</span>');
document.writeln('<span class="description">(12+ years)</span>');
document.writeln('</label>');
document.writeln('<select name="_adults" id="adult" onchange="checkUM();">');
document.writeln('<option value="0">0</option>');
document.writeln('<option value="1" selected="">1</option>');
document.writeln('<option value="2">2</option>');
document.writeln('<option value="3">3</option>');
document.writeln('<option value="4">4</option>');
document.writeln('<option value="5">5</option>');
document.writeln('<option value="6">6</option>');
document.writeln('<option value="7">7</option>');
document.writeln('<option value="8">8</option>');
document.writeln('<option value="9">9</option>');
document.writeln('<option value="10">10</option>');
document.writeln('<option value="11">11</option>');
document.writeln('<option value="12">12</option>');
document.writeln('<option value="13">13</option>');
document.writeln('<option value="14">14</option>');
document.writeln('<option value="15">15</option>');
document.writeln('<option value="16">16</option>');
document.writeln('<option value="17">17</option>');
document.writeln('<option value="18">18</option>');
document.writeln('<option value="19">19</option>');
document.writeln('<option value="20">20</option>');
document.writeln('</select>');
document.writeln('</div>');
document.writeln('<div id="midsel" class="third midpane">');
document.writeln('<label for="child">');
document.writeln('<span class="title">Child</span>');
document.writeln('<span class="description">(2-11 years)</span>');
document.writeln('</label>');
document.writeln('<select name="_children" id="child" onchange="checkUM();">');
document.writeln('<option value="0" selected="">0</option>');
document.writeln('<option value="1">1</option>');
document.writeln('<option value="2">2</option>');
document.writeln('<option value="3">3</option>');
document.writeln('<option value="4">4</option>');
document.writeln('<option value="5">5</option>');
document.writeln('<option value="6">6</option>');
document.writeln('<option value="7">7</option>');
document.writeln('<option value="8">8</option>');
document.writeln('<option value="9">9</option>');
document.writeln('<option value="10">10</option>');
document.writeln('<option value="11">11</option>');
document.writeln('<option value="12">12</option>');
document.writeln('<option value="13">13</option>');
document.writeln('<option value="14">14</option>');
document.writeln('<option value="15">15</option>');
document.writeln('<option value="16">16</option>');
document.writeln('<option value="17">17</option>');
document.writeln('<option value="18">18</option>');
document.writeln('<option value="19">19</option>');
document.writeln('</select>');
document.writeln('</div>');
document.writeln('<div class="third right">');
document.writeln('<label for="infant">');
document.writeln('<span class="title">Infant</span>');
document.writeln('<span class="description">(-2 years)</span>');
document.writeln('</label>');
document.writeln('<select name="_infants" id="infant">');
document.writeln('<option value="0" selected="">0</option>');
document.writeln('<option value="1">1</option>');
document.writeln('<option value="2">2</option>');
document.writeln('<option value="3">3</option>');
document.writeln('<option value="4">4</option>');
document.writeln('<option value="5">5</option>');
document.writeln('<option value="6">6</option>');
document.writeln('<option value="7">7</option>');
document.writeln('<option value="8">8</option>');
document.writeln('<option value="9">9</option>');
document.writeln('<option value="10">10</option>');
document.writeln('<option value="11">11</option>');
document.writeln('<option value="12">12</option>');
document.writeln('<option value="13">13</option>');
document.writeln('<option value="14">14</option>');
document.writeln('<option value="15">15</option>');
document.writeln('<option value="16">16</option>');
document.writeln('<option value="17">17</option>');
document.writeln('<option value="18">18</option>');
document.writeln('<option value="19">19</option>');
document.writeln('<option value="20">20</option>');
document.writeln('</select>');
document.writeln('</div>');
document.writeln('</div>');
document.writeln('<div class="full">');
document.writeln('<div style="padding-top:-2px;padding-bottom:-10px;margin-top:-11px">');
document.writeln('<a class="more" href="/help/booking-faqs.html\">Booking FAQs &raquo;</a>');
document.writeln('</div>');

//document.writeln('<div class="half" id="halfmore">');
//document.writeln('<a class="more" href="#" onclick="MM_openBrWindow(\'' + img_path + 'help/bookandpay/index.html\',\'bookinghelp\',\'scrollbars=yes,resizable=yes,width=560,height=470\')" >How to book online &raquo;</a>');
//document.writeln('</div>');

document.writeln('<div class="full">');
document.writeln('<a class="more" href="#" onclick="MM_openBrWindow(\'' + img_path + 'help/bookandpay/index.html\',\'bookinghelp\',\'scrollbars=yes,resizable=yes,width=560,height=470\')" >How to book online &raquo;</a>');
document.writeln('</div>');

//document.writeln('<div class="submit half">');
document.writeln('<div class="submit half" style="margin-left: 110px;margin-top: -9px;">');
document.writeln('<input onClick="javascript:return SimulateFlightSearch(_adults.value, _children.value, _infants.value, _tripType.value,ddOrigin.value, ddDestination.value, _depday.value, _depmonthyear.value,_retday.value, _retmonthyear.value);" type="image" src="'+img_path+'images/search.gif" value="Search" />');
document.writeln('<input onClick="javascript:return SimulateFlightSearch(_adults.value, _children.value, _infants.value, document.form._tripType.value,ddOrigin.value, ddDestination.value, _depday.value, _depmonthyear.value,_retday.value, _retmonthyear.value);" type="image" src="' + img_path + 'images/search.gif" value="Search" />');
document.writeln('</div>');
document.writeln('</div>');
document.writeln('<div class="clear">&nbsp;</div>');
document.writeln('<div id="SkySalesAvailabilitySearchDiv"></div> ');
document.writeln('</form>');
document.writeln('<div class="clear">&nbsp;</div>');
document.writeln('</div>');
document.writeln('<div id="tabs-2">');
//document.writeln('<form action="#">');
//document.writeln('<div class="full">');
//document.writeln('<select>');
//document.writeln('<option value="test">test</option>');
//document.writeln('</select>');
//document.writeln('</div>');
//document.writeln('<div class="full">');
//document.writeln('<select>');
//document.writeln('<option value="test">test</option>');
//document.writeln('</select>');
//document.writeln('</div>');
//document.writeln('</form>');
//document.writeln('<div class="clear">&nbsp;</div>');
document.writeln('</div>');
document.writeln('<div id="tabs-3">');
//document.writeln('third tab');
document.writeln('</div>');
document.writeln('</div>');
document.writeln('<div class="special-links box">');
document.writeln('<ul>');
document.writeln('<li><a href="https://book.cebupacificair.com/LoginAgent.aspx" class="lefttopmenu" style="padding-left: 20px;letter-spacing:2px">&bull; &nbsp;Partner Agents</a></li><br>');
document.writeln('<li><a href="' + pg_path + 'travel-services/ceb-biz.html" class="lefttopmenu" style="padding-left: 20px;letter-spacing:2px">&bull; &nbsp;CEB BIZ Partners</a></li>');
document.writeln('</ul>');
document.writeln('</div>');
document.writeln('<div class="box manage-booking" style="border:solid 0px"><a href="' + pg_path + 'seat_map.pdf"><img src="' + img_path + 'images/ss_avail.jpg" border="0"></a></div> ');
document.writeln('<div class="box manage-booking" style="border:solid 0px"><a href="https://book.cebupacificair.com/RetrieveBooking.aspx"><img src="' + img_path + 'images/manage-booking.gif" border="0"></a></div> ');
document.writeln('<div align="right" class="box ad-banner" style="border:solid 0px"><a href="' + img_path + 'aboutus/advertising.html"><img src="' + img_path + 'images/ad_with_us.gif" border="0"></a></div> ');
document.writeln('</div>');

document.write('<div id="errorbox" class="mid" style="color:red;font-size:1.2em;width:749px;height:0px;" >');
document.write('</div>');