 
	
	var md = new Date();
	var mydate;
    var mydate = md.getDate();

	if (mydate == 1) {odate = "1st ";	}
	if (mydate == 2) {odate = "2nd ";	}
	if (mydate == 3) {odate = "3rd ";	}
	if (mydate == 4) {odate = "4th ";	}
	if (mydate > 4) {odate = mydate + "th "; }
	if (mydate == 21) {odate = "21st "; }
	if (mydate == 22) {odate = "22nd "; }
	if (mydate == 23) {odate = "23rd "; }
	if (mydate == 31) {odate = "31st "; }

	mydate = odate + my_month(md.getMonth()) + " " + md.getFullYear() + ", " + my_day(md.getDay());

 

function my_month(mm)
{
	if (mm == 0) { return "January" }
	if (mm == 1) { return "February" }
	if (mm == 2) { return "March" }
	if (mm == 3) { return "April" }
	if (mm == 4) { return "May" }
	if (mm == 5) { return "June" }
	if (mm == 6) { return "July" }
	if (mm == 7) { return "August" }
	if (mm == 8) { return "September" }
	if (mm == 9) { return "October" }
	if (mm == 10) { return "November" }									
	if (mm == 11) { return "December" }	
}

function my_day(dd)
{
	if (dd == 0) { return "Sunday" }
	if (dd == 1) { return "Monday" }
	if (dd == 2) { return "Tuesday" }
	if (dd == 3) { return "Wednesday" }
	if (dd == 4) { return "Thursday" }
	if (dd == 5) { return "Friday" }
	if (dd == 6) { return "Saturday" }
}

  

function window_preview(file_name)
{
  var mywin;
   W = 500
   H  = 380
	msdn = file_name
   var myW = W ? W : screen.availWidth;
   var myH = H ? H : screen.availHeight;
   mywin = window.open(msdn,"",'width='+myW+',height='+myH+', top=150,left=150,scrollbars=no');
   mywin.resizeTo(myW,myH);
}

 
var bee = new BrowserCheck

function BrowserCheck() {
	var b = navigator.appName;
	if (b=="Netscape") this.b = "ns";
	else if (b=="Microsoft Internet Explorer") this.b = "ie";
	else this.b = b;
	this.version = navigator.appVersion
	this.v = parseInt(this.version);
	this.ns = (this.b=="ns" && this.v>=4);
	this.ns4 = (this.b=="ns" && this.v==4);
	this.ns5 = (this.b=="ns" && this.v==5);
	this.ie = (this.b=="ie" && this.v>=4);
	this.ie4 = (navigator.userAgent.indexOf('MSIE 4')>0);
	this.ie5 = (navigator.userAgent.indexOf('MSIE 5')>0);
	if (this.ie5) this.v = 5;
	this.min = (this.ns||this.ie);
  this.win = (this.version.indexOf('Win')>0);
  this.mac = (this.version.indexOf('Mac')>0);

  if (this.win == true)  this.os = "win";
  if (this.mac == true)  this.os = "mac";

}
 