function convertDate(strDate){
	if (strDate.length==6){
		strMonth = strDate.substring(0,2)
		strDay = strDate.substring(2,4)
		strYear = strDate.substring(4,6)
		strFullDate = strMonth + "/" + strDay + "/" + strYear
		return(strFullDate)
	};
	
	if (strDate.length==5){
		strMonth = strDate.substring(0,1)
		strDay = strDate.substring(1,3)
		strYear = strDate.substring(3,5)
		strFullDate = "0" + strMonth + "/" + strDay + "/" + strYear
		return(strFullDate)
	};
	return(strDate);
}

function date_exit(x){
	if (x.indexOf("/") == -1)
	{
		document.Form1.txtDate.value = convertDate(x);
	};
}

function time_exit(x){
	if (x.indexOf(":") == -1)
	{
		document.Form1.txtTime.value = convertTime(x);
	};
}

function convertTime(strTime){
	if (strTime.length==4){
		strHour = strTime.substring(0,2);
		strMinutes = strTime.substring(2,4);
		strFullTime = strHour + ":" + strMinutes;
		return(strFullTime);
	};
	
	return(strTime);
}

