document.write('	<script language="JavaScript">');
document.write('		var popUpWin=0;');
document.write('		function popUpWindow() {');
document.write('			if (popUpWin) {');
document.write('	    		if (!popUpWin.closed) popUpWin.close();');
document.write('			}');
document.write('			popUpWin = open("http://acceso.terra.com.mx/ayuda/default.htm", "popUpWin", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width=585,height=450,left=0,top=0,screenX=0,screenY=0");');
document.write('		}');
document.write('');
document.write('	function AbreAyuda() {');
document.write('		browserVer = parseInt(navigator.appVersion);');
document.write('		if (browserVer>2 )');
document.write('			window.open("http://www.expertcity.com/partners/terraSmartBox.html","AyudaInteractiva","hotkeys=no,screenX=0,screenY=0,left=0,top=0,width=640,height=350");');
document.write('	}');
document.write('');
document.write('	function Comentarios(){');
document.write('	direccion = "http://www.terra.com.mx/general/comentarios/comentarios1.asp?producto=dof";');
document.write('	window.open(direccion, "TheRemote", "width=420, height=400, resizable=no")');
document.write('	}');
document.write('');
document.write('	function FormatDateTime(datetime, FormatType){');
document.write('	var strDate = new String(datetime);');
document.write('	if (strDate.toUpperCase() == "NOW") {');
document.write('		var myDate = new Date();');
document.write('		strDate = String(myDate);');
document.write('	} else {');
document.write('		var myDate = new Date(datetime);');
document.write('		strDate = String(myDate);');
document.write('	}');
document.write('	var Day = new String(strDate.substring(0,3));');
document.write('	if (Day == "Sun") Day = "Domingo";');
document.write('	if (Day == "Mon") Day = "Lunes";');
document.write('	if (Day == "Tue") Day = "Martes";');
document.write('	if (Day == "Wed") Day = "Miercoles";');
document.write('	if (Day == "Thu") Day = "Jueves";');
document.write('	if (Day == "Fri") Day = "Viernes";');
document.write('	if (Day == "Sat") Day = "Sabado";');
document.write('	var Month = new String(strDate.substring(4,7)), MonthNumber = 0;');
document.write('	if (Month == "Jan") { Month = "Enero"; MonthNumber = 1; }');
document.write('	if (Month == "Feb") { Month = "Febrero"; MonthNumber = 2; }');
document.write('	if (Month == "Mar") { Month = "Marzo"; MonthNumber = 3; }');
document.write('	if (Month == "Apr") { Month = "Abril"; MonthNumber = 4; }');
document.write('	if (Month == "May") { Month = "Mayo"; MonthNumber = 5; }');
document.write('	if (Month == "Jun") { Month = "Junio"; MonthNumber = 6; }');
document.write('	if (Month == "Jul") { Month = "Julio"; MonthNumber = 7; }');
document.write('	if (Month == "Aug") { Month = "Agosto"; MonthNumber = 8; }');
document.write('	if (Month == "Sep") { Month = "Septiembre"; MonthNumber = 9; }');
document.write('	if (Month == "Oct") { Month = "Octubre"; MonthNumber = 10; }');
document.write('	if (Month == "Nov") { Month = "Noviembre"; MonthNumber = 11; }');
document.write('	if (Month == "Dec") { Month = "Diciembre"; MonthNumber = 12; }');
document.write('	var curPos = 11;');
document.write('	var MonthDay = new String(strDate.substring(8,10));');
document.write('	if (MonthDay.charAt(1) == " ") {');
document.write('		MonthDay = "0" + MonthDay.charAt(0);');
document.write('		curPos--;');
document.write('	}	');
document.write('	var MilitaryTime = new String(strDate.substring(curPos,curPos + 5));');
document.write('	var Year = new String(strDate.substring(strDate.length - 4, strDate.length));	');
document.write('	if (FormatType == 1)');
document.write('		strDate = Day + ", " + Month + " " + MonthDay + ", " + Year;');
document.write('	else if (FormatType == 2)');
document.write('		strDate = MonthNumber + "/" + MonthDay + "/" + Year.substring(2,4);');
document.write('	else if (FormatType == 3) {');
document.write('		var AMPM = MilitaryTime.substring(0,2) >= 12 && MilitaryTime.substring(0,2) != "24" ? " PM" : " AM";');
document.write('		if (MilitaryTime.substring(0,2) > 12)');
document.write('			strDate = (MilitaryTime.substring(0,2) - 12) + ":" + MilitaryTime.substring(3,MilitaryTime.length) + AMPM;');
document.write('		else {');
document.write('			if (MilitaryTime.substring(0,2) < 10)');
document.write('				strDate = MilitaryTime.substring(1,MilitaryTime.length) + AMPM;');
document.write('			else');
document.write('				strDate = MilitaryTime + AMPM;');
document.write('			}');
document.write('	}	');
document.write('	else if (FormatType == 4)');
document.write('		strDate = MilitaryTime;');
document.write('	return strDate;');
document.write('}');
document.write('</script>');




