function toShortDate(d){ 
        d = new Date(d); 
        var tempd = (d.getMonth()+1) + "/" + d.getDate() +  "/" + d.getFullYear(); 
        return(tempd);
}

function toShortTime(oDate){
		if (oDate == "")
			oDate = new Date(Date())
		else
			oDate = new Date(oDate);
		var tempt = (oDate.getHours()<10?"0"+oDate.getHours():oDate.getHours()) + ":" +(oDate.getMinutes()<10?"0"+oDate.getMinutes():oDate.getMinutes()) + ":" + (oDate.getSeconds()<10?"0"+oDate.getSeconds():oDate.getSeconds());
		return(tempt);
} 

function toLocalTime1(timeget){
	var tolocaltime = new Date(timeget);
	tolocaltime = toShortDate(tolocaltime)+" "+toShortTime(tolocaltime);
	return tolocaltime;
}
