    var today = new Date();
    var initDate = new Date((today.valueOf() + (86400 * 1000)));
    var toDate = new Date(initDate.valueOf() + (7 * 86400 * 1000));
    var initParams = {};
    initParams['departure'] = '';    // Prepopulate departure, format: "Cityname (airport/city code), Country name", example: "London (LON), United Kingdom"
    initParams['destination'] = '';    // Same as departure
    initParams['CMP'] = '';    
    initParams['tab'] = '';        // Initial tab to display. Values: "flights", "hotels", "cars", "dp"                                                        
    initParams['dp'] = {};
    initParams['monthNames'] = ["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];
    initParams['dayNames'] = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];
    initParams['timeDiff'] = 24;
    initParams['maxMonth'] = 12;		
    initParams['dp']['times'] = [];
    initParams['dp']['times'][0] = {text: 'Any time', value: 'TANY'};
    initParams['dp']['times'][1] = {text: 'Morning', value: 'TK1'};
    initParams['dp']['times'][2] = {text: 'Afternoon', value: 'TK2'};
    initParams['dp']['times'][3] = {text: 'Evening', value: 'TK3'};
    initParams['dp']['departure_day'] = ((initDate.getDate() < 10) ? '0' + initDate.getDate() : initDate.getDate());
    initParams['dp']['departure_month'] = initDate.getFullYear() + '' + (((initDate.getMonth()+1) < 10) ? '0' + (initDate.getMonth() + 1) : (initDate.getMonth() + 1));
    initParams['dp']['return_day'] = ((toDate.getDate() < 10) ? '0' + toDate.getDate() : toDate.getDate());
    initParams['dp']['return_month'] = toDate.getFullYear() + '' + (((toDate.getMonth()+1) < 10) ? '0' + (toDate.getMonth() + 1) : (toDate.getMonth() + 1));
    initParams['dp']['adults'] = 2;      

    function showError(text, field)
    {
        alert(text);
        jQuery('#'+field).focus();
        jQuery('#'+field+'Label').css('color', 'red');
    }
    
    
