function DST(){
    var today = new Date;
    var yr = today.getFullYear();
    var dst_start = new Date("March 14, "+yr+" 02:00:00"); // 2nd Sunday in March can't occur after the 14th 
    var dst_end = new Date("November 07, "+yr+" 02:00:00"); // 1st Sunday in November can't occur after the 7th
    var day = dst_start.getDay(); // day of week of 14th
    dst_start.setDate(14-day); // Calculate 2nd Sunday in March of this year
    day = dst_end.getDay(); // day of the week of 7th
    dst_end.setDate(7-day); // Calculate first Sunday in November of this year
    if (today >= dst_start && today < dst_end){ //does today fall inside of DST period?
        return true; //if so then return true
    }
    return false; //if not then return false
}
function isBusinessHours(){
    var dt = new Date;
    var DOW = dt.getDay();
    curHour = dt.getUTCHours() - 8;
    if(DST()) curHour += 1;
    if(curHour < 6 || curHour > 16) return false;
    if(DOW == 0 || DOW == 6) return false;
    return true;
}

