function ChangeColor(Param,Color,ColorFont){
	document.getElementById(Param).style.backgroundColor = Color;
	document.getElementById(Param).style.color = ColorFont;
}

function FcGo(Param1){
	location.href = Param1;
}

function FcOpen(){
	window.open('files/cgthistoria/index.htm','Memoria','status=yes,toolbar=yes,menubar=yes,resizable=yes,location=auto,scrollbars=yes');
}


function CallWebLogsDefault(Param1){
	document.frmTMP.idSecretaria.value= Param1;	
	document.frmTMP.action = "lstWebLogs.asp";
	document.frmTMP.submit();		
}

function FcOpenOrg(){
	document.getElementById("rows31").style.display = "";
	document.getElementById("rows32").style.display = '';	
}

function ValidationLength(obj, length, txt){
	if(obj.value.length > length){
		alert(txt);
		obj.focus();
		return false;
	}
	return true;
}

function FcOpenSec(){		
	document.getElementById("rows51").style.display = "";
	document.getElementById("rows52").style.display = "";	
	document.getElementById("rows53").style.display = "";	
	document.getElementById("rows54").style.display = '';	
	document.getElementById("rows55").style.display = '';	
	document.getElementById("rows56").style.display = '';	
	document.getElementById("rows57").style.display = '';	
	document.getElementById("rows58").style.display = ''; 
}

function validarEmail(valor) {
	if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(valor)){
   		return true;
  	}
  	else{
  		return false;
  	}
}