//Funcion para envio de formulario, donde form es el atributo name del mismo
function guardar(action, formulario){
	resultado=megavalidacion(formulario);
	if (resultado!=false)
	{
		switch(formulario)
		{
			case "contactofrm":envia_correo(action);
							break;
			case "plano":	document.forms[formulario].submit();
							//activeform.submit;var activeform=document.getElementById(formulario);
							break;
		}
	}
	resultado="";
}
/*
function blanco(){
  this.className="ok";
}
//Funciones para contenedor de carga en procesos AJAX
function aparecer()
{	
	//if(document.getElementById("procesandomsg") == 'undefined' || document.getElementById("procesandomsg").style.display != "block")
	//{
	//if(document.getElementById("procesandomsg"))
		document.getElementById("procesandomsg").innerHTML="procesando:<img src='../images/process.gif' />"
		//document.getElementById("procesandomsg").style.display = "block";
	//document.getElementById("procesando").style.display = "block";
	//fader.fadeIn();
	//}
}

function desvanecer()
{
	document.getElementById("procesandomsg").innerHTML="GRUPO HOYAL"
	//fader.fadeOut();
} 
*/