
function bypassCheck() {
	if (document.forms[0].bypass.checked) {
		setCookie("ignoreDetect", "yes", 1000 * 60 * 60 * 24 * 365 * 4);
	} else {
		setCookie("ignoreDetect", "yes");
	}
	document.location = "skychart.asp";
}

  function getLocation() {
  	newWindow = window.open("skychartobloc.asp", "set_location", "menubar,width=650,height=550,status,scrollbars");
	newWindow.focus();
  }	// getLocation
  
  //getDateTime('2001','12','27','09','00','pm','false','false');
  function getDateTime(year, month, day, hour, minute, amPM, loclabel, latitude, longitude, tz, dlst, utc) {

	var page = "choosedatetime2.asp?";
    
	if (dlst == 'true') {
		page += "dlst=true&";
	}
    if (utc == 'true') {
        page += "utc=true&";
    }
    if (tz) {
        page += "tz=" + tz + "&";
    }
	if (year && month && day) {	
		//append date in the format of 'skychart_date=2001-12-17'
		page += "skychart_date=" + year + "-" +	month + "-" + day + "&";
		
	}
	if (hour) {
		page += "hour=" + hour + "&";
	}

	if (minute) {
		page += "minute=" + minute + "&";
	}

	if (amPM) {
		page += "amPM=" + amPM + "&";
	}

    if (latitude) {
       page += "latitude=" + latitude + "&";
    }

    if (longitude) {
       page += "longitude=" + longitude + "&";
    }

    if (loclabel) {
       page += "loclabel=" + escape(loclabel) + "&";
    }

  	newWindow = window.open(page, "date_win", "status,menubar,scrollbars,width=600,height=420");
	newWindow.focus();
  }	// getDateTime
  
  
  function getAdvancedDisplayOptions(h_const_on, s_const_on, 
  									 h_labels_on, s_labels_on,
  									 h_planets_on, s_planets_on,
									 h_dso_on, s_dso_on,
									 h_specials_on, s_specials_on,
                                     h_bstar_on, s_bstar_on,
                                     h_land_on) {
  	//alert("about to open adv display window");
	var page = "advancedoptions2.html?";
	if (h_const_on) {
		page = page + "h_const_on=true&";
	}
	if (s_const_on) {
		page = page + "s_const_on=true&";
	}
	if (h_labels_on) {
		page = page + "h_labels_on=true&";
	}
	if (s_labels_on) {
		page = page + "s_labels_on=true&";
	}
	if (h_planets_on) {
		page = page + "h_planets_on=true&";
	}
	if (s_planets_on) {
		page = page + "s_planets_on=true&";
	}
	if (h_dso_on) {
		page = page + "h_dso_on=true&";
	}
	if (s_dso_on) {
		page = page + "s_dso_on=true&";
	}
	if (h_specials_on) {
		page = page + "h_specials_on=true&";
	}
	if (s_specials_on) {
		page = page + "s_specials_on=true&";
	}
    if (h_bstar_on) {
        page = page + "h_bstars_on=true&";
    }
    if (s_bstar_on) {
        page = page + "s_bstars_on=true";
    }
    if (h_land_on) {
        page = page + "h_show_landscape=true";
    }
  	newWindow = window.open(page, "date_win", "status,width=600,height=410");
	newWindow.focus();
  }	// getAdvancedDisplayOptions
  
  
