function frmctto_enviar(opajax){ //2013 document.forms[0].envia.value='78_pky9_A|@'; submitform(opajax); } function frm_enviar(opajax){ //2013 document.getElementById('envia').value='78_pky9_A|@'; submitform(opajax); } function submitform(opajax){ if(opajax==1) ajaxSubmit(); else document.forms[0].submit(); } function frmctto_deshacer(){ document.forms[0].reset(); } //------------ var is_chrome = navigator.userAgent.toLowerCase().indexOf('chrome') > -1; function ShowError(){ return true; } window.onerror=ShowError; function abrirventana(pagina,titulo){ w=660; h=530; t=(screen.width-w)/2; l=(screen.height-h)/2-33; win=window.open(pagina,'','width='+w+',height='+h+',scrollbars=yes,resizable=yes'); if(is_chrome==false) win.moveTo(t,l); win.focus(); } function abrirventanapop(pagina,titulo){ w=660; h=530; t=(screen.width-w)/2; l=(screen.height-h)/2-33; win=window.open(pagina,'','width='+w+',height='+h+',scrollbars=yes,resizable=yes'); if(is_chrome==false) win.moveTo(t,l); win.focus(); } function abrirventana2(pagina,w,h){ t=(screen.width-w)/2; l=(screen.height-h)/2-33; win=window.open(pagina,'','width='+w+',height='+h+',scrollbars=no,resizable=no'); if(is_chrome==false) win.moveTo(t,l); win.focus(); } //var calWin; var calObject; function abreCalendario(object){ w=225; h=270; l=(screen.width-w)/2; t=(screen.height-h)/2-33; calObject=object; calWin=window.open('admin.php?Pagina=calendario&modo=cont','cal','width='+w+',height='+h+',left='+l+',top='+t+',scrollbars=no,resizable=no'); if(is_chrome==false) calwin.moveTo(t,l); calwin.focus(); } function cierraCalendario(dia,mes,anno){ document.forms[0]['dia'+calObject].value=dia; document.forms[0]['mes'+calObject].value=mes; document.forms[0]['anno'+calObject].value=anno; } function ObtenerObjeto(n, d) { var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i= 48 && key <= 57)); } */ function validarNumero(evt){ var key = evt.keyCode; return (key <= 13 || (key >= 48 && key <= 57) || key == 45 || key == 32 || key == 46); } function idioma(idi,pagina){ document.location='index.php?IDPagina='+pagina+'&idioma='+idi; } function votacion(x){ document.location='index.php?id='+x+'&votar=1'; } function imprimir(x){ window.open('index.php?IDPagina=imprimirnoticia&idnot='+x); }