// JavaScript Document
var winSrc;
// self.name = "mainWindow";
function openNewWindow(winSrc) {
    window.open(winSrc,'pathWindow','menubar=no,toolbar=no,location=no,status=no,directories=no,copyhistory=no,resizable=yes,scrollbars=no')
}


function toggle_visibility(id) {
	var e = document.getElementById(id);
	if(e.style.display == 'none')
		e.style.display = '';
	else
		e.style.display = 'none';
}


function getEstimatedShippingDate() {

    var months = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");

    var todaysDate = new Date();
    // todaysDate.setDate(todaysDate.getDate() - 6); // adjust today's date, for debugging purposes

    var estimatedShippingDate = new Date();

    // examine the day of the week to determine a more accurate estimated shipping date.  for instance, packages
    // don't ship (or move) on sundays, so we need to account for that.
    if (todaysDate.getDay() < 4) {
        // if today's day falls on the interval [sun, wed], add 3 days to get est. shipping date.
        estimatedShippingDate.setDate(todaysDate.getDate() + 3);
    } else {
        // else today's day falls on the interval [thur, sat], add 4 days to get est. shipping date.
        estimatedShippingDate.setDate(todaysDate.getDate() + 4);
    }

    var monthTxt = months[estimatedShippingDate.getMonth()];
    var dayTxt = estimatedShippingDate.getDate();
    var yearTxt = estimatedShippingDate.getFullYear();

    return document.write(monthTxt + " " + dayTxt + ", " + yearTxt);
}