function shwtate(){
	var enabled = 0; today = new Date();
	var day; var date; var month;
	if(today.getDay()==0) day = "Sunday."
	if(today.getDay()==1) day = "Monday"
	if(today.getDay()==2) day = "Tuesday"
	if(today.getDay()==3) day = "Wednesday"
	if(today.getDay()==4) day = "Thursday."
	if(today.getDay()==5) day = "Friday."
	if(today.getDay()==6) day = "Saturday."


	if(today.getMonth()==0) month = "Jan."
	if(today.getMonth()==1) month = "Feb."
	if(today.getMonth()==2) month = "Mar."
	if(today.getMonth()==3) month = "Apr."
	if(today.getMonth()==4) month = "May"
	if(today.getMonth()==5) month = "June"
	if(today.getMonth()==6) month = "July¤ë"
	if(today.getMonth()==7) month = "Aug."
	if(today.getMonth()==8) month = "Sep."
	if(today.getMonth()==9) month = "Oct."
	if(today.getMonth()==10) month = "Nov."
	if(today.getMonth()==11) month = "Dec."

	date= month+"&nbsp;" + today.getDate()+"&nbsp;&nbsp;"+(today.getYear())+"&nbsp;&nbsp;&nbsp;" + day;
	return  date;
}

//=======================================
// function to calculate local time
// in a different city
// given the city's UTC offset
function CurrentTime(city, offset) {

     // avoid errors in offset values
     offset = parseInt(offset);

    // create Date object for current location

    d = new Date();   

    // convert to msec
    // add local time zone offset
    // get UTC time in msec

    utc = d.getTime() + (d.getTimezoneOffset() * 60000);   

    // create new Date object for different city
    // using supplied offset

    nd = new Date(utc + (3600000*offset));

     // Get simple time in hours, minutes, and AM/PM
	 var year = nd.getYear();
	 var month = nd.getMonth()+1;
	 var date = nd.getDate();
     var hours = nd.getHours() % 12 + 1;
     var minutes = nd.getMinutes();
     var seconds = nd.getSeconds();
     var am_pm = (nd.getHours() > 12) ? "PM" : "AM" ;

    // return time as a string
     return city+": "+ year +"-"+ month +"-"+ date +"  "+ hours + ":" + minutes + ":" + seconds + " " + am_pm + "";
     
   // return "The local time in " + city + " is " + nd.toLocaleString(); // Old return statement
}

function CurrentDate(city, offset) {

     // avoid errors in offset values
     offset = parseInt(offset);

    // create Date object for current location

    d = new Date();   

    // convert to msec
    // add local time zone offset
    // get UTC time in msec

    utc = d.getTime() + (d.getTimezoneOffset() * 60000);   

    // create new Date object for different city
    // using supplied offset

    nd = new Date(utc + (3600000*offset));

     // Get simple time in hours, minutes, and AM/PM
	 var year = nd.getYear();
	 var month = nd.getMonth()+1;
	 var date = nd.getDate();

    // return time as a string
     return city+": "+ year +"-"+ month +"-"+ date ;
     
   // return "The local time in " + city + " is " + nd.toLocaleString(); // Old return statement
}

 function GMT(){
	var od = new Date(); 
    var utc = od.getTime() + (od.getTimezoneOffset() * 60000); //od.toGMTString(); 
	var nd = new Date(utc);
	var year = nd.getYear();
	var month = nd.getMonth()+1;
	var date = nd.getDate();
    //var hours = nd.getHours();
	
	if ((nd.getHours()-12)>0) { //for AM-PM
		var hours =nd.getHours()-12 ;
	}else{
		var hours =nd.getHours() ;
	}
    var minutes = nd.getMinutes();
    var seconds = nd.getSeconds();
	var am_pm = (nd.getHours() > 12) ? "PM" : "AM" ;
	//return "GMT: "+ year +"-"+ month +"-"+ date ;
	//return "GMT: "+ nd ;
	return "GMT: "+ year +"-"+ month +"-"+ date+"    "+ hours +":"+ minutes +":"+ seconds+"    "+ am_pm  ;
    //Response.Write('Current = ' + od + '<br>UTC(GMT) = ' + nd); 
}