document.write('<body oncontextmenu="return false" onselectstart="return false" ondragstart="return false"><style>@import url("gae_c.css");</style><body background="D:"><meta http-equiv="imagetoolbar" content="no"><frame><noframes></frame></noframes>')

var phpmyvisitesSite = 2;
var phpmyvisitesURL = "http://www.sistemas.cc/stats/phpmyvisites.php";

function nys(e){key=(document.all) ? e.keyCode : e.which;if ((key!=8&&key!=13&&key!=45&&key<48||key>57)){return false;}return true;}
function nysa(e){key=(document.all) ? e.keyCode : e.which;if ((key!=8&&key<48||key>57&&key<65||key>90&&key<97||key>122&&key!=13)){return false;}return true;}

function mostrar(nombreCapa){ document.getElementById(nombreCapa).style.visibility="visible"; if(nombreCapa=="contenido"){document.getElementById(nombreCapa).style.height="180px";} } 
function ocultar(nombreCapa){ document.getElementById(nombreCapa).style.visibility="hidden"; if(nombreCapa=="contenido"){document.getElementById(nombreCapa).style.height="0px";} } 

window.moveTo(0,0);
if (document.all) { top.window.resizeTo(screen.availWidth,screen.availHeight); }
else if (document.layers||document.getElementById) {
if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
top.window.outerHeight = screen.availHeight;
top.window.outerWidth = screen.availWidth; } }

function abrirpopup(nombre,ancho,alto) { dat = 'width=' + ancho + ',height=' + alto + ',left=0,top=0,scrollbars=yes,resize=no'; window.open(nombre,'',dat); }


function validar()
{
if ( document.cx.f_nombre.value == "" ) { alert("Ingrese su Nombre.");document.cx.f_nombre.focus();return false;}
if ( document.cx.f_empresa.value == "" ) { alert("Ingrese su Empresa.");document.cx.f_empresa.focus();return false;}
if ( document.cx.f_pais.value == "" ) { alert("Ingrese su Pais.");document.cx.f_pais.focus();return false;}
if ( document.cx.f_estado.value == "" ) { alert("Ingrese su Estado.");document.cx.f_estado.focus();return false;}
if ( document.cx.f_ciudad.value == "" ) { alert("Ingrese su Ciudad.");document.cx.f_ciudad.focus();return false;}
if ( document.cx.f_email.value == "" ) { alert("Ingrese su E-mail.");document.cx.f_email.focus();return false;}
if ( document.cx.f_password.value == "" ) { alert("Ingrese su Password.");document.cx.f_puesto.focus();return false;}
if (echeck(document.cx.f_email.value)==false){ document.cx.f_email.value="";document.cx.f_email.focus();return false;} 
if ( document.cx.f_tel.value == "" ) { alert("Ingrese su Teléfono.");document.cx.f_tel.focus();return false;}
if ( document.cx.f_comentarios.value == "" ) { alert("Ingrese sus Comentarios.");document.cx.f_comentarios.focus();return false;}
return true;
}

function validar_login()
{
if ( document.l.m.value == "" ) { alert("Ingrese su Usuario.");document.l.m.focus();return false;}
if ( document.l.p.value == "" ) { alert("Ingrese su Password.");document.l.p.focus();return false;}
return true;
}

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("E-mail invalido"); return false } 
if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){ alert("E-mail invalido"); return false }
if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){ alert("E-mail invalido"); return false }
if (str.indexOf(at,(lat+1))!=-1){ alert("E-mail invalido"); return false } 
if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){ alert("E-mail invalido");return false } 
if (str.indexOf(dot,(lat+2))==-1){ alert("E-mail invalido"); return false } 
if (str.indexOf(" ")!=-1){ alert("E-mail invalido"); return false } 
return true 
}


PositionX = 0;
PositionY = 0;
defaultWidth  = 0;
defaultHeight = 0;
var AutoClose = true;
if (parseInt(navigator.appVersion.charAt(0))>=4){
var isNN=(navigator.appName=="Netscape")?1:0;
var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
var optNN='scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
var optIE='scrollbars=no,width=150,height=100,left='+PositionX+',top='+PositionY;
function popImage(imageURL,imageTitle){
if (isNN){imgWin=window.open('about:blank','',optNN);}
if (isIE){imgWin=window.open('about:blank','',optIE);}
with (imgWin.document){
writeln('<html><head><title>Cargando ...</title><style>body{margin:0px;}</style>');writeln('<sc'+'ript>');
writeln('var isNN,isIE;');writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
writeln('isNN=(navigator.appName=="Netscape")?1:0;');writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
writeln('function reSizeToImage(){');writeln('if (isIE){');writeln('window.resizeTo(100,100);');
writeln('width=100-(document.body.clientWidth-document.images[0].width);');
writeln('height=100-(document.body.clientHeight-document.images[0].height);');
writeln('window.resizeTo(width,height);}');writeln('if (isNN){');       
writeln('window.innerWidth=document.images["imagenes"].width;');writeln('window.innerHeight=document.images["imagenes"].height;}}');
writeln('function doTitle(){document.title="'+imageTitle+'";}');writeln('</sc'+'ript>');
if (!AutoClose) writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()">')
else writeln('</head><body bgcolor=ffffff scroll="no" onload="reSizeToImage();doTitle();self.focus()" onblur="self.close()">');
writeln('<img name="imagenes" src='+imageURL+' style="display:block"></body></html>');
close();
}}



function paginas (url, id_contenedor) { var pagina_requerida = false;
if (window.XMLHttpRequest) { pagina_requerida = new XMLHttpRequest (); } 
else if (window.ActiveXObject) 
{ 
try { pagina_requerida = new ActiveXObject ("Msxml2.XMLHTTP"); }
catch (e)
{ 
try
{ pagina_requerida = new ActiveXObject ("Microsoft.XMLHTTP"); }
catch (e)
{ 
}
}
} 
else
return false;
pagina_requerida.onreadystatechange = function ()
{ cargarpagina (pagina_requerida, id_contenedor); }
pagina_requerida.open ('GET', url, true);
pagina_requerida.send (null); }


function cargarpagina (pagina_requerida, id_contenedor) {
if (pagina_requerida.readyState==1) { document.getElementById (id_contenedor).innerHTML ="<div class=precarga><center><img src=precarga.gif></center></div>"; }
if (pagina_requerida.readyState == 4 && (pagina_requerida.status == 200 || window.location.href.indexOf ("http") == - 1))
txt=unescape(pagina_requerida.responseText);
txt2=txt.replace(/\+/gi," ");
document.getElementById (id_contenedor).innerHTML = txt2; }

function creaAjax(){
var objetoAjax=false;
try { objetoAjax = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) {
try { objetoAjax = new ActiveXObject("Microsoft.XMLHTTP"); } 
catch (E) { objetoAjax = false; } }

if (!objetoAjax && typeof XMLHttpRequest!='undefined') { objetoAjax = new XMLHttpRequest(); }
return objetoAjax; }

function FAjax (url,capa,valores,metodo)
{ var ajax=creaAjax(); var capaContenedora = document.getElementById(capa);
if(metodo.toUpperCase()=='POST'){ document.write="hola pepe"; ajax.open ('POST', url, true);
ajax.onreadystatechange = function() {
if (ajax.readyState==1) { capaContenedora.innerHTML="<div class=precarga><center><img src=precarga.gif></center></div>"; }
else if (ajax.readyState==4){
if(ajax.status==200) { document.getElementById(capa).innerHTML=ajax.responseText; }
else if(ajax.status==404) { capaContenedora.innerHTML = "La direccion existe"; }
else { capaContenedora.innerHTML = "Error: ".ajax.status; }
}
}
ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded'); ajax.send(valores);
return;
}

if (metodo.toUpperCase()=='GET'){ ajax.open ('GET', url, true);
ajax.onreadystatechange = function() {
if (ajax.readyState==1) { capaContenedora.innerHTML="<img src=precarga.gif>"; }
else if (ajax.readyState==4){
if(ajax.status==200){ document.getElementById(capa).innerHTML=ajax.responseText; }
else if(ajax.status==404)
{ capaContenedora.innerHTML = "La direccion existe"; }
else
{ capaContenedora.innerHTML = "Error: ".ajax.status; }
}
}
ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
ajax.send(null);
return
}
}
