	function getDate() {var now = new Date();
	var days = new Array('Domingo','Lunes','Martes','Mi&eacute;rcoles','Jueves','Viernes','S&aacute;bado');
	var months = new Array('Enero','Febrero','Marzo','Abril','Mayo','Junio','Julio','Agosto','Septiembre','Octubre','Noviembre','Diciembre');
	var date = ((now.getDate()<10) ? "0" : "")+ now.getDate();
	function fourdigits(number)	{return (number < 1000) ? number + 1900 : number;}
	today =  "<span class='dia'>" + days[now.getDay()] + " " + date + ",</span> <span class='fecha'><br> " +  months[now.getMonth()] + " de " + (fourdigits(now.getYear()))+ "</span>" ;
	document.write(today);} 
	function NewWindow(mypage, args, myname, w, h, scroll) {var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable='+scroll;
	mypage += escape(args);
	win = window.open(mypage, myname, winprops);	
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus();}}
	function valButton(btn) {var cnt = -1;
	for (var i=btn.length-1; i > -1; i--) {if (btn[i].checked) {cnt = i; i = -1;}}
	if (cnt > -1) return btn[cnt].value;
	else return null;}	
	function triviaForm(form) {var btn = valButton(form.RadioTrivia);
	if (btn == null) 
	alert('Seleccione una respuesta.');
	else {NewWindow('/XStatic/excelsior/template/triviapopup.aspx?intTriviaId=' + form.tv.value + '&intAnswerId=' + btn,'','winTrivia','580','300','yes');}}
	function voteForm(form) {var btn = valButton(form.RadioSondeo);
	if (btn == null) 
	alert('Seleccione una respuesta.');
	else {form.action='../template/votarEncuesta.aspx';
	form.submit();}}
	function validate(formData, jqForm, options) 
	{ var form = jqForm[0]; 
		var btn = valButton(form.RadioSondeo);
		if (btn == null) { alert('Seleccione una respuesta'); 
						return false;} 
		return true;}
	
	function voteBombon(form) {var btn = valButton(form.RadioSondeo);
	if (btn == null) 
	alert('Seleccione una respuesta.');
	else {form.action='../template/votabombon.aspx';
	form.submit();}}
	function voteFormArtista(form,artista) {var btn = valButton(form.RadioSondeo);
	if (btn == null) 
	alert('Seleccione una respuesta.');
	else {form.action='../template/artistasondeo.aspx?ar='+artista;
	form.submit();}}
	function verHoroscopo(targ,selObj,restore){ if (selObj.options[selObj.selectedIndex].value!=0){eval(targ+".location='/Xstatic/excelsior/template/horoscopo.aspx?t=" + restore + "#" + selObj.options[selObj.selectedIndex].value + "'");
	if (restore) selObj.selectedIndex=0;}}
	function cargaOtrasEntradas(selObj,intB,intBl){ if (selObj.options[selObj.selectedIndex].value!=0){$("#idEntradas").append('<div id="TB_load2"><img src="../images/icons/ajax-loader3.gif" /></div>');	
	$("#idEntradas").load('../template/otrosBlogs.aspx?strFecha=' + selObj.options[selObj.selectedIndex].value + '&intB=' + intB +'&intBl=' + intBl);}}
	function tv(form) {	parent.document.location.href='../template/tv.aspx?zipcode=' + form.zipcode.value;}
	function cine(form) {parent.document.location.href='../template/cine.aspx?zipcode=' + form.zipcode.value;}
	function selectColumnista(combo,virtual){ if (combo.options[combo.selectedIndex].value!=0)
	document.location.href=virtual + '/XStatic/excelsior/template/content.aspx?se=columna&id=' + combo.options[combo.selectedIndex].value;}		
	function selectEditorialista(combo,virtual){ if (combo.options[combo.selectedIndex].value!=0)
	document.location.href=virtual + '/XStatic/excelsior/template/content.aspx?se=editorial&id=' + combo.options[combo.selectedIndex].value;}		
	function selectBloguero(combo,virtual){ if (combo.options[combo.selectedIndex].value!=0)
	document.location.href=virtual + '/XStatic/excelsior/template/indiceblog.aspx?bl=' + combo.options[combo.selectedIndex].value;}		
	function selectFotoBloguero(combo,virtual){ if (combo.options[combo.selectedIndex].value!=0)
	document.location.href=virtual+'/XStatic/excelsior/template/indicefotoblog.aspx?bl=' + combo.options[combo.selectedIndex].value;}
	function selectGrupo(tema, combo){ if (combo.options[combo.selectedIndex].value!=0)
	document.location.href='indicecontenido.aspx?id='+ tema + '&t=' + combo.options[combo.selectedIndex].value;}
	function selectCategoriaAudio(combo){ var valor=combo.options[combo.selectedIndex].value;
	if (valor.substring(0, 1)=='S') {valor=valor.substring(1,valor.length);
	if (valor!=0)
	document.location.href='mmaudio.aspx?sc=' + valor;}
	else
	if (valor!=0)
	document.location.href='mmaudio.aspx?intCatId=' + valor;}
	function selectCategoriaVideo(combo){ 
	var valor=combo.options[combo.selectedIndex].value;
	if (valor.substring(0, 1)=='S') {
	valor=valor.substring(1,valor.length);
	if (valor!=0)
	document.location.href='mmvideos.aspx?sc=' + valor;}
	else
	if (valor!=0)
	document.location.href='mmvideos.aspx?intCatId=' + valor;
	}
	function selectCategoriaFotoGaleria(combo){ var valor=combo.options[combo.selectedIndex].value;
	if (valor.substring(0, 1)=='S') {valor=valor.substring(1,valor.length);
	if (valor!=0)
	document.location.href='fotogaleria.aspx?sc=' + valor;}
	else
	if (valor!=0)
	document.location.href='fotogaleria.aspx?intCatId=' + valor;}
	function selectCategoriaFotoReportaje(combo){ if (combo.options[combo.selectedIndex].value!=0)
	document.location.href='mmfotoreportaje.aspx?intCatId=' + combo.options[combo.selectedIndex].value;}
	function selectPueblo(combo){ if (combo.options[combo.selectedIndex].value!=0)
	document.location.href='cinecartelera.aspx?pu='+ combo.options[combo.selectedIndex].value;}
	function selectCine(tema, combo){ if (combo.options[combo.selectedIndex].value!=0)
	document.location.href='cinecartelera.aspx?pu='+ tema + '&ci=' + combo.options[combo.selectedIndex].value;}
	function selectPelicula(combo){ if (combo.options[combo.selectedIndex].value!=0)
	document.location.href='cinecartelera.aspx?pe='+ combo.options[combo.selectedIndex].value;}
	function showM(container) {	$.tabs("container-1",container);}
	function showTomorrow(value) {if (value==true)
	document.forms[0].im.value = 1;
	else
	document.forms[0].im.value = 0;
	document.forms[0].submit();}
	function MM_jumpMenu2(targ,selObj,restore){frames[targ].location.href= selObj.options[selObj.selectedIndex].value;
	if (restore) selObj.selectedIndex=0;}
	function MM_jumpMenuButtonFecha(targ,selObj,selObj2,strBase){if (selObj.options[selObj.selectedIndex].value!='' && selObj2.options[selObj2.selectedIndex].value!='') {
	frames[targ].location.href= strBase + 'iframe_vmultimedia.aspx?t=fecha&m='+ selObj.options[selObj.selectedIndex].value + '&a=' + selObj2.options[selObj2.selectedIndex].value;}}
	function MM_jumpMenuButtonFechaAudio(targ,selObj,selObj2,strBase){if (selObj.options[selObj.selectedIndex].value!='' && selObj2.options[selObj2.selectedIndex].value!='') {
	frames[targ].location.href= strBase + 'iframe_vmultimediaaudio.aspx?t=fecha&m='+ selObj.options[selObj.selectedIndex].value + '&a=' + selObj2.options[selObj2.selectedIndex].value;}}
	function MM_jumpMenuButtonFechaFoto(targ,selObj,selObj2,strBase){if (selObj.options[selObj.selectedIndex].value!='' && selObj2.options[selObj2.selectedIndex].value!='') {
	frames[targ].location.href= strBase + 'iframe_vmultimediafoto.aspx?t=fecha&m='+ selObj.options[selObj.selectedIndex].value + '&a=' + selObj2.options[selObj2.selectedIndex].value;}}
	function MM_jumpMenuButtonFechaGrafico(targ,selObj,selObj2,strBase){if (selObj.options[selObj.selectedIndex].value!='' && selObj2.options[selObj2.selectedIndex].value!='') {
	frames[targ].location.href= strBase + 'iframe_vmultimediagrafico.aspx?t=fecha&m='+ selObj.options[selObj.selectedIndex].value + '&a=' + selObj2.options[selObj2.selectedIndex].value;}}
	function fotoVanguardia(container,page,id, base){ $("#fotosint").remove();
	$(container).append('<div id="TB_load2"><img src="../images/icons/ajax-loader3.gif" /></div>');	
	$(container).load(base+'fotogaleriaVentana.aspx?pa='+page+'&id='+id);}
	function MM_jumpIndice(seccion,selObj,base,id){if (selObj.options[selObj.selectedIndex].value!='0')
	document.location.href= base + 'content.aspx?se='+ seccion + '&te=indicesecciondetalle&id='+id + '&fe=' + selObj.options[selObj.selectedIndex].value;}   
	function borrar() {var inputs = document.getElementsByTagName('input');
	for (var i = 0; i < inputs.length; i++) { 	id = inputs[i].getAttribute("name"); 
	if (id != null) {				
	if ( id.indexOf('chk_')>=0 ) { inputs[i].checked = false;}}}}
	function backfwdSearch(intPage,form) {form.p.value=intPage;
	form.submit();}
	function buscaPeliculas(cboPeliculas, cboCines,strBase){ var intPelicula= cboPeliculas.options[cboPeliculas.selectedIndex].value;
	var intCine= cboCines.options[cboCines.selectedIndex].value;
	document.location.href=strBase + 'content.aspx?se=tiempolibre&id=cine&pr=' + intPelicula + ',' + intCine;}
	function buscaObituario(cboDia, cboMes, cboYear,strBase){ var intDia= cboDia.options[cboDia.selectedIndex].value;
	var intMes= cboMes.options[cboMes.selectedIndex].value;
	var intYear= cboYear.options[cboYear.selectedIndex].value;
	document.location.href=strBase + 'content.aspx?se=obituarios&id=' + intMes + '/' + intDia + '/' + intYear;}
	function abrirEnviar() {$(".enviamigo").show();
	$(".ToolsIcons #btnenviar").addClass("ToolsActivo");}
	function cerrarEnviar() {$(".enviamigo").hide();
	$(".ToolsIcons #btnenviar").removeClass("ToolsActivo");}
	jQuery.cookie = function(name, value, options) {if (typeof value != 'undefined') {options = options || {};
	var expires = '';
	if (options.expires && (typeof options.expires == 'number' || options.expires.toGMTString)) {
	var date;
	if (typeof options.expires == 'number') {date = new Date();
	date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000));
	} else {date = options.expires;}
	expires = '; expires=' + date.toGMTString();}
	var path = options.path ? '; path=' + options.path : '';
	var domain = options.domain ? '; domain=' + options.domain : '';
	var secure = options.secure ? '; secure' : '';
	document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join('');
	} else { var cookieValue = null;
	if (document.cookie && document.cookie != '') {var cookies = document.cookie.split(';');
	for (var i = 0; i < cookies.length; i++) {var cookie = jQuery.trim(cookies[i]);
	if (cookie.substring(0, name.length + 1) == (name + '=')) {cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
	break;}}}
	return cookieValue;}};
	var submitcount=0; 
	function disableSubmit(){ if (typeof(Page_ClientValidate)=='function') { if (Page_ClientValidate() == true) { return checkSubmit(); 
	} else { return true; 
	}} else { return checkSubmit(); }} 
	function checkSubmit() { if (submitcount == 0) { submitcount++; return true;} else { alert('Su comentario se está registrando. Espere un momento.'); return false; 
	}}	
	function prioritize(combo){ if (combo.options[combo.selectedIndex].value!=0)
	NewWindow(combo.options[combo.selectedIndex].value,'','prioritize','1100','600','yes');}		
	function viewPreliminar(combo){ if (combo.options[combo.selectedIndex].value!=0)
	NewWindow(combo.options[combo.selectedIndex].value,'','viewPreliminar','1100','600','yes');}	
	