/**
 * @author Rodrigo
 */

 function verificarIE6()
 {
	 if (checkIE6()) {
	 
	 	window.location = "IE6error.php";
	 
	 }
 }

 function validaUsuario(){

 	var res1 = ValidaTXT(document.getElementById("txtPass"));
 	var res2 = ValidaEmail(document.getElementById("txtEmail"));
	
 	if ((res1) && (res2)) {
 		document.getElementById("frm").submit();
 	}
	else {
		alert("Verifique E-mail y Password");
	}
		
 }
 
 function borrarUsuario(id)
 {
	if (confirm("¿Desea borrar este usuario?")) 
	{
	 	document.getElementById("ifr").src = "delusuario.php?id=" + id;
	}
 }
 
 function borrarNoticia(id)
 {
	if (confirm("¿Desea borrar esta noticia?")) 
	{
	 	document.getElementById("ifr").src = "delnoticia.php?id=" + id;
	}
 }
   
 function borrarExcepcion(id)
 {
	if (confirm("¿Desea borrar esta excepción?")) 
	{
	 	document.getElementById("ifr").src = "delexcepcion.php?id=" + id;
	}
 }
  
 function borrarDeportiva(id)
 {
	if (confirm("¿Desea borrar esta noticia deportiva?")) 
	{
	 	document.getElementById("ifr").src = "deldeportiva.php?id=" + id;
	}
 }
 
 function borrarPrograma(id)
 {
	if (confirm("¿Desea borrar este programa?")) 
	{
	 	document.getElementById("ifr").src = "delprograma.php?id=" + id;
	}
 }
  
 function borrarJingle(id)
 {
	if (confirm("¿Desea borrar este jingle?")) 
	{
	 	document.getElementById("ifr").src = "deljingle.php?id=" + id;
	}
 }
 
 function borrarGrilla(id)
 {
	if (confirm("¿Desea borrar este programa?")) 
	{
	 	document.getElementById("ifr").src = "delgrilla.php?id=" + id;
	}
 }
 
 function verGrilla() 
 {
 	
	var idgrilla = parseInt(document.getElementById("ddlGrilla").selectedIndex) + 1;
	window.location.href = "vergrilla.php?gri=" + idgrilla;
	
 }
 
 function audioSubido(idprog) {
 	
	document.getElementById("divSubiendo").style.display = "none";
	window.location.href = "veraudios.php?id=" + idprog;
	
 }
 
 function subirAudio() {
 	
	document.getElementById("divSubiendo").style.display = "";
	document.getElementById("frm").submit();
	
 }
 
 function borrarAudio(id)
 {
	if (confirm("¿Desea borrar este audio?")) 
	{
	 	document.getElementById("ifr").src = "delaudio.php?id=" + id;
	}
 }



