   		function aparecer(id_obj){
  			var obj = document.getElementById(id_obj);
  			obj.style.display = "block";
  		}

  		function desaparecer(id_obj){
   			var obj = document.getElementById(id_obj);
   			obj.style.display = "none";
   		}

		function boton_chekar (formulario,cuadro,campo){
	  		if ((document.getElementById(formulario).elements[cuadro].checked)) {
		  		aparecer(campo);
		  	}
		  	else {
			  	desaparecer(campo);
			}
		}
		
  		function combo_muestra(forma,combo,id_obj,id_obj2){
	  		
	  		var documento=document.getElementById(forma);
	  		var indice=documento.elements[combo].options[documento.elements[combo].selectedIndex].value;
	  		
			if (indice==1){
				desaparecer(id_obj);
				desaparecer(id_obj2);
			}
			else{
				if (indice==2){
					aparecer(id_obj);
					desaparecer(id_obj2);
				}
				else{
					desaparecer(id_obj);
					aparecer(id_obj2);
				}
			}
		}
		
function echeck(str) {

		var at="@";
		var dot=".";
		var lat=str.indexOf(at);
		var lstr=str.length;
		var ldot=str.indexOf(dot);
		if (str.indexOf(at)==-1){
		   alert("Correo No Valido");
		   return false;
		}

		if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){
		   alert("Correo No Valido");
		   return false
		}

		if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){
		    alert("Correo No Valido");
		    return false
		}

		 if (str.indexOf(at,(lat+1))!=-1){
		    alert("Correo No Valido");
		    return false
		 }

		 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
		    alert("Correo No Valido");
		    return false
		 }

		 if (str.indexOf(dot,(lat+2))==-1){
		    alert("Correo No Valido");
		    return false;
		 }
		
		 if (str.indexOf(" ")!=-1){
		    alert("Correo No Valido");
		    return false;
		 }

 		 return true;				
	}

function ValidateForm(){
	var emailID=document.buzonx.txtEmail;
	
	/*if ((emailID.value==null)||(emailID.value=="")){
		alert("Por favor ingresa tu Correo");
		emailID.focus();
		return false;
	}*/
	if (echeck(emailID.value)==false){
		//emailID.value=""
		//emailID.focus();
		return false;
	}
	return true;
 }
 


function hov(loc,cls) { 
  if(loc.className) 
   loc.className=cls; 
}
