// Arrays holding the references to the days and months.
// You are free to change these into another format or language.

var days = new Array("SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT");
var months = new Array("JAN", "FEB", "MAR", "APR", "MAY", "JUNE", "JULY", "AUG", "SEPT", "OCT", "NOV", "DEC");
var suffix = new Array("th", "st", "nd", "rd");

function addSuffix(str){
	str = str.toString().replace(/^[23]?(\d)$/, "$1");
	if(suffix[str]){
		return suffix[str];
		}
	else {
		return suffix[0];
		}
	}

function showDate(){
	var now = new Date(); // Retrieve date
	var tmp = "<span class=\"date\">"; // Start formatting container
	tmp += days[now.getDay()] + " ";; // Retrieve the day
	tmp += months[now.getMonth()] + " "; // Retrieve the month
	tmp += now.getDate(); // Retrieve the day of the month
	tmp += addSuffix(now.getDate());
	tmp += "</span>"; // End formatting containter
	return tmp;





	}
	
	
	

var a_p = "";
var d = new Date();

var curr_hour = d.getHours();
var curr_min = d.getMinutes();

if (curr_min < 10) {
curr_min = "0" + curr_min;
}

function showTime(){

  var tmp2 = "<span class=\"time\">"; 
    tmp2 += curr_hour + ":";
    tmp2 += curr_min + " " + "PDT";
	tmp2 += "</span>"; 
	return tmp2;
	}


      <!-- document.write(curr_hour + " : " + curr_min + " PDT" ); -->