var UTIStartDate = new Date( 2002, (3-1), 01, 0, 0, 0, 0); // (3-1) zero indexed months , Legislative start of TAA
var ValidationDateBound = 20                 // Limit period of calculation for validation
var MAX_DATE = new Date( 9999, 11, 31, 01, 00, 00, 00, 00);
var SHORT_DATE_FORMAT = "dd/mm/yyyy";
var GST = 0.10;
var FirstHomeExemption = 100000;
var HomeExemption = 70000;
var SD45Exemption = 100000;

// NOTE: Zero based index on month only!!, year and day of month are NOT!!!
var date01January1900 = new Date(1900, 01, 01);
var date01March2002 = new Date(2002, 02, 01);
var date01March2003 = new Date(2003, 02, 01);
var date30April2004 = new Date(2004, 03, 30);
var date01May2004 = new Date(2004, 04, 01); // note mnth 04 = May!
var date31July2004 = new Date(2004, 06, 31);
var date01August2004 = new Date(2004, 07, 01); // note mnth 07 = August!
var date30June2006 = new Date(2006, 05, 30);
var date01July2006 = new Date(2006, 06, 01);
var date01August2006 = new Date(2006, 07, 01);
var date31December2006 = new Date(2006, 11, 31);
var date01January2007 = new Date(2007, 00, 01);
var date01January2008 = new Date(2008, 00, 01);
var date01January9999 = new Date(9999, 00, 01);

var firstHomeExemption1 = 100000;
var firstHomeExemption2 = 250000;

var firstHomeConcessionCutOff1 = 160000;
var firstHomeConcessionCutOff2 = 499999;

function constants_getFirstHomeExemption( date)
{
    if (date.valueOf() < date01May2004.valueOf()) {
        return firstHomeExemption1;
    }
    else {
        return firstHomeExemption2;
    }
}

function constants_getFirstHomeConcesionCutOff( date)
{
    if (date.valueOf() < date01May2004.valueOf()) {
        return firstHomeConcessionCutOff1;
    }
    else {
        return firstHomeConcessionCutOff2;
    }
}