  function mOvr(src,clrOver) {
    if (!src.contains(event.fromElement)) {
	  src.style.cursor = 'hand';
	  src.className = clrOver;
	}
  }
  function mOut(src,clrIn) {
	if (!src.contains(event.toElement)) {
	  src.style.cursor = 'default';
	  src.className = clrIn;
	}
  }
  function mClk(src) {
    if(event.srcElement.tagName=='TD'){
	  src.children.tags('A')[0].click();
    }
  }
  function mClkTR(src) {
    if(event.srcElement.tagName=='TR'){
       alert(event.srcElement.tagName);
	  src.children.tags('A')[0].click();
    }
  }

  function opwin2(n,v)
  {
	window.open(n+'?d='+v,'','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=455,height=610');
  }

  function opwino(n) 
  {
   window.open(n,'','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=285,height=270');
  }

<!--
  	function over(src,clrOver) {
	  if (!src.contains(event.fromElement)) {
	    src.style.cursor = 'hand';
	    src.bgColor = clrOver;
	  }
	}
	function out(src,clrIn) {
	  if (!src.contains(event.toElement)) {
	    src.style.cursor = 'default';
	    src.bgColor = clrIn;
	  }
    }
//-----------addd
function LmUp(path)
{
location.href = path;
}
// -->	
function validaremail(objeto)
{
	var tecla = window.event.keyCode;
	if ((objeto.value.length==0) && (tecla==64))
	{
		window.event.keyCode=0;
		return false;
	}
	else if ((tecla>57 || tecla<48) && (tecla>90 || tecla<65)&&(tecla>122||tecla<97) && tecla!=64 && tecla!=95 && tecla!=45 && tecla!=46)		
		{
			window.event.keyCode = 0;
			return false;
		}	
	if (tecla==64 && objeto.value.indexOf("@")!=-1)	
		{
			window.event.keyCode = 0;
			return false;
		}
	if (tecla==46)		
		if ((objeto.value.indexOf("@")+1)>(objeto.value.length-2))
			{
				window.event.keyCode = 0;
				return false;
			}	
}

function validar()
  {    
	var x;
	document.getElementById("txtname").focus();
	if (document.getElementById("txtname").value=="")
	   { alert("Escriba su nombre.."); document.getElementById("txtname").focus(); return false;}
	   
	if ((document.getElementById("txtmail").value.indexOf("@")==-1) || (document.getElementById("txtmail").value.indexOf(".")==-1))
		{	
		alert ("Escriba correctamente su e-mail");
		document.getElementById("txtmail").focus();
		return false;
		}		
		
	e=document.getElementById("txtmail").value;
	if(!(e.match('@')))
	   { alert("E-mail Incorrecto"); document.getElementById("txtmail").focus(); return false;} 	
	   
	if (document.getElementById("txtmens").value=="")
	   { alert("Escriba el texto de su mensaje"); document.getElementById("txtmens").focus(); return false;}	    
	//document.frm_contacto.submit();	    
  }

function validarper()
  {    
	var x;
	if (document.getElementById("txtper").value=="")
	   { alert("Tiene que registrar el Nombre"); document.getElementById("txtper").focus(); return false;}   
	if (document.getElementById("txtcon").value=="")
	   { alert("Tiene que registrar el contenido"); document.getElementById("txtcon").focus(); return false;}
  }

function validarpro()
  {    
	var x;
	if (document.getElementById("txttit").value=="")
	   { alert("Tiene que registrar el título.."); document.getElementById("txttit").focus(); return false;}   
	if (document.getElementById("txtaut").value=="")
	   { alert("Tiene que registrar el contenido"); document.getElementById("txtaut").focus(); return false;}
	if (document.getElementById("txtart").value=="")
	   { alert("Tiene que registrar el contenido"); document.getElementById("txtart").focus(); return false;}	   
  }
function validarmus()
  {    
	var x;
	if (document.getElementById("txtautm").value=="")
	   { alert("Tiene que registrar el autor de la canción.."); document.getElementById("txtautm").focus(); return false;}   
	if (document.getElementById("txttitm").value=="")
	   { alert("Tiene que registrar el titulo de la canción.."); document.getElementById("txttitm").focus(); return false;}
	if (document.getElementById("archivo").value=="")
	   { alert("Tiene que elegir el archivo de música"); document.getElementById("archivo").focus(); return false;}	   
  }

function validarvid()
  {    
	var x;
	if (document.getElementById("txtprod").value=="")
	   { alert("Tiene que registrar el autor de la canción.."); document.getElementById("txtprod").focus(); return false;}   
	if (document.getElementById("txttitv").value=="")
	   { alert("Tiene que registrar el titulo de la canción.."); document.getElementById("txttitv").focus(); return false;}
	if (document.getElementById("archivo").value=="")
	   { alert("Tiene que elegir el archivo de video"); document.getElementById("archivo").focus(); return false;}	   
  }

function validarins()
  {    
	var x;
	if (document.getElementById("txtnom").value=="")
	   { alert("Tienes que registrar tu nombre(s).."); document.getElementById("txtnom").focus(); return false;}   
	if (document.getElementById("txtape").value=="")
	   { alert("Tienes que registrar tus apellidos"); document.getElementById("txtape").focus(); return false;}   

	if ((document.getElementById("txtma1").value.indexOf("@")==-1) || (document.getElementById("txtma1").value.indexOf(".")==-1))
		{	
		alert ("Tienes que ingresar correctamente su e-mail");
		document.getElementById("txtma1").focus();
		return false;
		}		
	e=document.getElementById("txtma1").value;
	if(!(e.match('@')))
	   { alert("Tu E-mail es Incorrecto"); document.getElementById("txtma1").focus(); return false;} 	
	   
	if ((document.getElementById("txtma2").value.indexOf("@")==-1) || (document.getElementById("txtma2").value.indexOf(".")==-1))
		{	
		alert ("Tienes que ingresar correctamente su e-mail");
		document.getElementById("txtma2").focus();
		return false;
		}		
	e=document.getElementById("txtma2").value;
	if(!(e.match('@')))
	   { alert("Tu E-mail es Incorrecto"); document.getElementById("txtma2").focus(); return false;} 	
	if (document.getElementById("txtma1").value!=document.getElementById("txtma2").value)
	   { alert("No coinciden tus E-mails"); document.getElementById("txtma1").focus(); return false;}	    
	if (document.getElementById("txtano").value<1950 || document.getElementById("txtano").value>2003)
	   { alert("Su fecha de nacimiento es Incorrecto..!!!"); document.getElementById("txtano").focus(); return false;}	    
	if (document.getElementById("txtnvo").value=="")
	   { alert("El N° de Voucher es Incorrecto...!!!"); document.getElementById("txtnvo").focus(); return false;}	    	   
	if (document.getElementById("txtciu").value=="")
	   { alert("La ciudad es Incorrecto..!!!"); document.getElementById("txtciu").focus(); return false;}	    
	if (document.getElementById("txtdir").value=="")
	   { alert("La ciudad es Incorrecto..!!!"); document.getElementById("txtdir").focus(); return false;}	    
	//document.frm_contacto.submit();	    
  }

