/*********************************************************************************
  dw_cookies.js - cookie functions for www.dyn-web.com
  Recycled from various sources 
**********************************************************************************/

// Modified from Bill Dortch's Cookie Functions (hidaho.com) 
// (found in JavaScript Bible)
function setCookie(name,value,days,path,domain,secure) {
  var expires, date;
  if (typeof days == "number") {
    date = new Date();
    date.setTime( date.getTime() + (days*24*60*60*1000) );
		expires = date.toGMTString();
  }
  document.cookie = name + "=" + escape(value) +
    ((expires) ? "; expires=" + expires : "") +
    ((path) ? "; path=" + path : "") +
    ((domain) ? "; domain=" + domain : "") +
    ((secure) ? "; secure" : "");
}

// Modified from Jesse Chisholm or Scott Andrew Lepera ?
// (found at both www.dansteinman.com/dynapi/ and www.scottandrew.com/junkyard/js/)
function getCookie(name) {
  var nameq = name + "=";
  var c_ar = document.cookie.split(';');
  for (var i=0; i<c_ar.length; i++) {
    var c = c_ar[i];
    while (c.charAt(0)==' ') c = c.substring(1,c.length);
    if (c.indexOf(nameq) == 0) return unescape( c.substring(nameq.length, c.length) );
  }
  return null;
}

// from Bill Dortch's Cookie Functions (hidaho.com) 
function deleteCookie(name,path,domain) {
  if (getCookie(name)) {
    document.cookie = name + "=" +
      ((path) ? "; path=" + path : "") +
      ((domain) ? "; domain=" + domain : "") +
      "; expires=Thu, 01-Jan-70 00:00:01 GMT";
  }
}




	function openWin( windowURL, windowName, windowFeatures ){ 
	return window.open( windowURL, windowName, windowFeatures ); 
	} 
	

	<!--
	var newday = new Date();
	var the_day = newday.getDate();
	var this_day = newday.getDay()+1;
	var the_month = newday.getMonth()+1;
	var the_year = newday.getYear();
	
	if (this_day == 1){my_day = "Sunday"};
	if (this_day == 2){my_day = "Monday"};
	if (this_day == 3){my_day = "Tuesday"};
	if (this_day == 4){my_day = "Wednesday"};
	if (this_day == 5){my_day = "Thursday"}; 
	if (this_day == 6){my_day = "Friday"};
	if (this_day == 7){my_day = "Saturday"};
	
	if (the_month == 1){my_month = "January"};
	if (the_month == 2){my_month = "February"};
	if (the_month == 3){my_month = "March"};
	if (the_month == 4){my_month = "April"};
	if (the_month == 5){my_month = "May"};
	if (the_month == 6){my_month = "June"};
	if (the_month == 7){my_month = "July"};
	if (the_month == 8){my_month = "August"};
	if (the_month == 9){my_month = "September"};
	if (the_month == 10){my_month = "October"};
	if (the_month == 11){my_month = "November"};
	if (the_month == 12){my_month = "December"};
	if (the_year <= 1000){the_year = the_year + 1900};
	if (the_day <= 31){the_day = " " + the_day};
	//-->