function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i0&&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=0) { var txtArr = txt.split("#ERROR#"); txt = txtArr[0]+txtArr[1]; result = false; } document.getElementById(capa).innerHTML=txt; if (result) { if (onEnd!="" && onEnd!=null) eval(onEnd); } else { //alert ("onError:"+onError+"("+onEnd+")"); if (onError!="" && onError!=null) eval(onError+"('"+txt+"')"); } } else if(ajax.status==404){ capaContenedora.innerHTML = "La direccion "+url+" no existe"; } else { capaContenedora.innerHTML = "Error: "+ajax.status; } } } ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded'); ajax.send(valores); return; } /*Creamos y ejecutamos la instancia si el metodo elegido es GET*/ if (metodo.toUpperCase()=='GET'){ ajax.open ('GET', url, true); ajax.onreadystatechange = function() { if (ajax.readyState==1) { capaContenedora.innerHTML="... cargando ..."; } else if (ajax.readyState==4){ if(ajax.status==200){ document.getElementById(capa).innerHTML=ajax.responseText; if (onEnd!="" && onEnd!=null) eval(onEnd); } else if(ajax.status==404) { capaContenedora.innerHTML = "La direccion "+url+" no existe"; } else { capaContenedora.innerHTML = "Error: "+ajax.status; } } } ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded'); ajax.send(null); return } } function VSImagen() { open("ImgLoad/ILoadNews.php","Subir imagen", "toolbar=no,directories=no,menubar=no,status=no,resizable=0,width=400,height=100,left=300,top=200"); } function VSFotoEsc() { open("ImgLoad/ILoadFEsc.php","Subir imagen", "toolbar=no,directories=no,menubar=no,status=no,resizable=0,width=400,height=100,left=300,top=200"); } function VSLogoEsc() { open("ImgLoad/ILoadLEsc.php","Subir imagen", "toolbar=no,directories=no,menubar=no,status=no,resizable=0,width=400,height=100,left=300,top=200"); } function VSFotoCir() { open("ImgLoad/ILoadFCir.php","Subir imagen", "toolbar=no,directories=no,menubar=no,status=no,resizable=0,width=400,height=100,left=300,top=200"); } function VSCCarr() { open("ImgLoad/ILoadCCarr.php","Subir imagen", "toolbar=no,directories=no,menubar=no,status=no,resizable=0,width=400,height=100,left=300,top=200"); } function VSCatPers() { open("ImgLoad/ILoadCPers.php","Subir imagen", "toolbar=no,directories=no,menubar=no,status=no,resizable=0,width=400,height=100,left=300,top=200"); } function VSLogoCir() { open("ImgLoad/ILoadLCir.php","Subir imagen", "toolbar=no,directories=no,menubar=no,status=no,resizable=0,width=400,height=100,left=300,top=200"); } function VSFotoCar() { open("ImgLoad/ILoadFCar.php","Subir imagen", "toolbar=no,directories=no,menubar=no,status=no,resizable=0,width=400,height=100,left=300,top=200"); } function VSBandera() { open("ImgLoad/ILoadBand.php","Subir imagen", "toolbar=no,directories=no,menubar=no,status=no,resizable=0,width=400,height=100,left=300,top=200"); } function VSFotoPer() { open("ImgLoad/ILoadFPer.php","Subir imagen", "toolbar=no,directories=no,menubar=no,status=no,resizable=0,width=400,height=100,left=300,top=200"); } function VSAccesorios() { open("ImgLoad/ILoadFAcc.php","Subir imagen", "toolbar=no,directories=no,menubar=no,status=no,resizable=0,width=400,height=100,left=300,top=200"); } function VSFotoPremio() { open("ImgLoad/ILoadFPrem.php","Subir imagen", "toolbar=no,directories=no,menubar=no,status=no,resizable=0,width=400,height=100,left=300,top=200"); } function Apuestas() { open("apostar.php","Haz tu apuesta", "toolbar=no,titlebar=no,location=no,directories=no,menubar=no,status=no,resizable=no,width=730,height=500"); } function Livenews() { open("sendlivenew.php","Introducir Live news", "toolbar=no,titlebar=no,location=no,directories=no,menubar=no,status=no,resizable=no,width=500,height=200,left=200,top=100"); } function Popup() { open("Editar_Noticias.php","Editar", "toolbar=no,titlebar=no,location=no,directories=no,menubar=no,status=no,resizable=no,width=600,height=400"); } function posicion(){ x = (screen.width - window.innerWidth) / 2; y = (screen.height - window.innerHeight) / 2; moveTo(x, y-50); }