/*Current date script credit: 
JavaScript Kit (www.javascriptkit.com)
Over 200+ free scripts here!
*/
function currentdate(){
// Define new Date object
var theDate=new Date();

// Retrieve the year

var year=theDate.getYear();
	if (year < 1000){
		year+=1900;
	}

var month=theDate.getMonth()+1;
// Adjust month by adding 1
	if (month<10){
		month="0"+month;
	}

var daym=theDate.getDate();
	if (daym<10){
		daym="0"+daym;
	}
var hour=theDate.getHours();
var ampm="";
	if (hour<12){
		ampm="am";
	}else{
		ampm="pm";
	}

	hour%=12;
	if ( hour == "0"){
		hour = "12";
	}
var minutes=theDate.getUTCMinutes();
	if (minutes < 10){
		minutes="0"+minutes; 
	}
	return month+"-"+daym+"-"+year+" "+hour+":"+minutes+" "+ampm;
}
