// JavaScript Document
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();
} 
function postload()
{
document.body.style.width="100%";
document.body.style.overflowX="hidden";
document.getElementById('fixedfoot').style.width="100%";
}
function getCheckedValue(radioObj) {
	if(!radioObj)
		return "";
	var radioLength = radioObj.length;
	if(radioLength == undefined)
		if(radioObj.checked)
			return radioObj.value;
		else
			return "";
	for(var i = 0; i < radioLength; i++) {
		if(radioObj[i].checked) {
			return radioObj[i].value;
		}
	}
	return "";
}
function guardar(action, formulario){
	resultado=megavalidacion(formulario);
	if (resultado!=false)
	{
		switch(formulario)
		{
			case "contacto":envia_correo(action);
							break;
			case "plano":	document.forms[formulario].submit();
							//activeform.submit;var activeform=document.getElementById(formulario);
							break;
		}
	}
	resultado="";
}
