function VerSisLey() {
	Ley = window.open("http://www.construccion.org.pe/normas/Leyes/index.php", "wLey", "toolbar=no, status=no, scrollbars=yes, resizable=Yes");
	Ley.focus();
}
function VerSisLey_V2() {
	Ley = window.open("http://www.construccion.org.pe/normas/Leyes_V2/", "wLey", "toolbar=no, status=no, scrollbars=yes, resizable=Yes");
	Ley.focus();
}function buscart() {
	x = window.open("articulos/principal.php", "cuerpo");
	x.focus();
}
function Congreso() {
	window.open("eventos/congreso2004/cic-prese.htm", "cuerpo");
}
function Expo() {
	window.open("eventos/congreso2004/cic-expo.htm", "cuerpo");
}
function rne() {
rn = window.open("rne2009/rne2006.htm", "wLey", "toolbar=no, status=no, scrollbars=yes, resizable=Yes");
rn.focus();
}

//-------------------------------------------------------------------------
function ClickArticulo1() {
//	parent.frames[0].document.images["articulo"].click()
	window.open("articulos/completo.php?codigo=1252", "cuerpo");
}
function ClickArticulo2() {
//	parent.frames[0].document.images["articulo"].click()
	window.open("articulos/completo.php?codigo=1252", "cuerpo");
}

//---------------------------------------------------------------------------
function ClickEnlaces() {
//	parent.frames[0].document.images["enlaces"].click()
	window.open("enlaces/enlaces.htm", "cuerpo");
}
function ClickLicitacion() {
//	parent.frames[0].document.images["licitacion"].click()
	window.open("licitaciones/licitaciones.htm", "cuerpo");
}
function ClickLibros() {
//	parent.frames[0].document.images["libros"].click()
	window.open("libros/libros.php", "cuerpo");
}
function ClickSoftware() {
//	parent.frames[0].document.images["software"].click()
	window.open("software/software.htm", "cuerpo");
}
function ClickInformativo() {
//	parent.frames[0].document.images["informativo"].click()
	window.open("informativo/informativo.htm", "cuerpo");
}
function ClickCatalogo() {
//	parent.frames[0].document.images["catalogo"].click()
	window.open("catalogos/catalogo.htm", "cuerpo");
}
function ClickLey() {
//	parent.frames[0].document.images["catalogo"].click()
	window.open("normas/legales.htm", "cuerpo");
}
function ClickInei() {
//	parent.frames[0].document.images["catalogo"].click()
	window.open("normas/inei/buscarindice.htm", "cuerpo");
}
//--------------------------------------------------------------------------------

function plano() {
	window.open("ubicacion/mapa0.htm", "ventana", "toolbar=no, status=no, scrollbars=yes, width=630, height=400");
}
function somos() {
	window.open("marketing/mailicg.htm", "ventana", "toolbar=no, status=no, scrollbars=yes, width=520, height=350");
}
function galeria() {
	x = window.open("eventos/fotos-congreso/foto-congreso.htm", "ventana", "toolbar=no, status=no, scrollbars=yes, width=420, height=250");
	x.focus();
}
function validaForm( cual )
{
	return (validateString(cual.email,  "EMAIL"));
}

function recargaBanner() 
{
	parent.parent.banner.location.reload(); 
}

function entra(src, color_entrada)
{
    if (!src.contains(event.fromElement)) {
	    src.bgColor= color_entrada;
    }
}

function sale(src, color_default)
{
    if (!src.contains(event.toElement)) {
        src.bgColor=color_default;
    }
}

//--------------------------------------------------------------------------------

function objetoAjax(){
	var xmlhttp=false;
	try {
		xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
	} catch (e) {
		try {
		   xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		} catch (E) {
			xmlhttp = false;
  		}
	}

	if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
		xmlhttp = new XMLHttpRequest();
	}
	return xmlhttp;
}

function MostrarPagina(pagina1,boton1){
	cont1 = document.getElementById('contenido');
	
	ajax1=objetoAjax();
	
    ajax1.open("GET", pagina1);
    ajax1.onreadystatechange = function(){
		if (ajax1.readyState == 4 && ajax1.status == 200) {
			cont1.innerHTML = ajax1.responseText;
		}
	}
	ajax1.send(null);
	//----------- configuraciones previas -------------//
	
	//definir los titulos de los botones
	titulo1=new Array();
	titulo1[0]="SAP2000";
	titulo1[1]="ETABS";
	titulo1[2]="SAFE";
	titulo1[3]="CSI";
	
	//definir numero de botones
	nrobtn1=4;
	
	//definir prefijo de botones
	//(esto con el objetivo de no tener
	//problemas al momento de validar
	//nuestra página.)
	pref1="boton_";
	
	//-------------------- fin ------------------------//

	//quita el estilo a todos los botones
	for(i=1;i<=nrobtn1;i++){
		tit1=titulo1[i-1];
		btn1=document.getElementById(pref1+i);
		btn1.innerHTML="<span style=\"border-top:1px #0057AE solid; border-left:1px #0057AE solid; border-right:1px #0057AE solid; border-bottom:1px #0057AE solid; margin-left:4px; padding-left:10px;padding-right:10px; padding-top:1px; padding-bottom:2px; text-decoration:none; 	background-color:#0057AE;\">"+tit1+"</span>";
	}
	//le da estilo al boton actual
	btnA1 = document.getElementById(pref1+boton1);
	tit1=titulo1[boton1-1];
	btnA1.innerHTML="<span style=\"border-top:3px #990000 solid;	border-left:1px #CCCCCC solid; border-right:1px #CCCCCC solid;	margin-left:4px; padding-left:10px; padding-right:10px; padding-top:1px; padding-bottom:5px; text-decoration:none; 	background-color:#FFFFFF;  color:#000000;\">"+tit1+"</span>";
}

function MostrarPagina2(pagina2,boton2){
	cont2 = document.getElementById('contenido2');
	
	ajax2=objetoAjax();
	
    ajax2.open("GET", pagina2);
    ajax2.onreadystatechange = function(){
		if (ajax2.readyState == 4 && ajax2.status == 200) {
			cont2.innerHTML = ajax2.responseText;
		}
	}
	ajax2.send(null);
	//----------- configuraciones previas -------------//
	
	//definir los titulos de los botones
	titulo2=new Array();
	titulo2[0]="RNE";
	titulo2[1]="Ley Contrataciones";
	titulo2[2]="Vivienda";

	
	//definir numero de botones
	nrobtn2=3;
	
	//definir prefijo de botones
	//(esto con el objetivo de no tener
	//problemas al momento de validar
	//nuestra página.)
	pref2="boton2_";
	
	//-------------------- fin ------------------------//

	//quita el estilo a todos los botones
	for(i=1;i<=nrobtn2;i++){
		tit2=titulo2[i-1];
		btn2=document.getElementById(pref2+i);
		btn2.innerHTML="<span style=\"border-top:1px #0057AE solid; border-left:1px #0057AE solid; border-right:1px #0057AE solid; border-bottom:1px #0057AE solid; margin-left:4px; padding-left:10px;padding-right:10px; padding-top:1px; padding-bottom:2px; text-decoration:none; 	background-color:#0057AE;\">"+tit2+"</span>";
	}
	//le da estilo al boton actual
	btnA2 = document.getElementById(pref2+boton2);
	tit2=titulo2[boton2-1];
	btnA2.innerHTML="<span style=\"border-top:3px #990000 solid;	border-left:1px #CCCCCC solid; border-right:1px #CCCCCC solid;	margin-left:4px; padding-left:8px;padding-right:8px; padding-top:1px; padding-bottom:5px; text-decoration:none; 	background-color:#FFFFFF;  color:#000000;\">"+tit2+"</span>";
}

function MostrarPagina3(pagina3,boton3){
	cont3 = document.getElementById('contenido3');
	
	ajax3=objetoAjax();
	
    ajax3.open("GET", pagina3);
    ajax3.onreadystatechange = function(){
		if (ajax3.readyState == 4 && ajax3.status == 200) {
			cont3.innerHTML = ajax3.responseText;
		}
	}
	ajax3.send(null);
	//----------- configuraciones previas -------------//
	
	//definir los titulos de los botones
	titulo3=new Array();
	titulo3[0]="eConferencias";
	titulo3[1]="Sistema Legal";
	
	//definir numero de botones
	nrobtn3=2;
	
	//definir prefijo de botones
	//(esto con el objetivo de no tener
	//problemas al momento de validar
	//nuestra página.)
	pref3="boton3_";
	
	//-------------------- fin ------------------------//

	//quita el estilo a todos los botones
	for(i=1;i<=nrobtn3;i++){
		tit3=titulo3[i-1];
		btn3=document.getElementById(pref3+i);
		btn3.innerHTML="<span style=\"border-top:1px #0057AE solid; border-left:1px #0057AE solid; border-right:1px #0057AE solid; border-bottom:1px #0057AE solid; margin-left:4px; padding-left:14px;padding-right:14px; padding-top:1px; padding-bottom:2px; text-decoration:none; 	background-color:#0057AE;\">"+tit3+"</span>";
	}
	//le da estilo al boton actual
	btnA3 = document.getElementById(pref3+boton3);
	tit3=titulo3[boton3-1];
	btnA3.innerHTML="<span style=\"border-top:3px #990000 solid; border-left:1px #CCCCCC solid; border-right:1px #CCCCCC solid;	margin-left:4px; padding-left:18px;padding-right:18px; padding-top:1px; padding-bottom:5px; text-decoration:none; 	background-color:#FFFFFF;  color:#000000;\">"+tit3+"</span>";
}