function GetXmlHttpObject() {
  var xmlHttp=null;
  try {
    // Firefox, Opera 8.0+, Safari
    xmlHttp=new XMLHttpRequest();
  } catch (e) {
    // Internet Explorer
    try {
      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
  return xmlHttp;
}


//
//

function fun1(i){
  var xmlHttp;
  xmlHttp=GetXmlHttpObject()

    xmlHttp.onreadystatechange=function() {
      if(xmlHttp.readyState==4) {
        document.getElementById("descreve").innerHTML=xmlHttp.responseText;

      }
    }
    xmlHttp.open("GET","logica2.asp?i="+i,true);
    xmlHttp.send(null);
}

//

function fun2(i){
  var xmlHttp;
  xmlHttp=GetXmlHttpObject()

    xmlHttp.onreadystatechange=function() {
      if(xmlHttp.readyState==4) {
        document.getElementById("descreve").innerHTML=xmlHttp.responseText;

      }
    }
    xmlHttp.open("GET","recursos2.asp?i="+i,true);
    xmlHttp.send(null);
}


//

function fun3(i){
  var xmlHttp;
  xmlHttp=GetXmlHttpObject()

    xmlHttp.onreadystatechange=function() {
      if(xmlHttp.readyState==4) {
        document.getElementById("descreve").innerHTML=xmlHttp.responseText;

      }
    }
    xmlHttp.open("GET","personaliza2.asp?i="+i,true);
    xmlHttp.send(null);
}



//


function abre_demo(){
newwindow=window.open("demo.asp","jandemo",'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=yes,top=10,left=10,width=780,height=540');
}

function abre_implanta(){
newwindow=window.open("implanta.asp","janimpla",'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=yes,top=10,left=10,width=780,height=540');
}

function termos(){
newwindow=window.open("termos.asp","termos",'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes,resizable=yes,top=10,left=10,width=780,height=460');
}

function totem()
{
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="780" height="60" id="esqueleto" align="middle">');
document.write('<param name="allowScriptAccess" value="sameDomain" />');
document.write('<param name="movie" value="obj/totem.swf" />');
document.write('<param name="quality" value="high" />');
document.write('<param name="wmode" value="transparent" />');
document.write('<param name="bgcolor" value="#ffffff" />');
document.write('<embed src="obj/totem.swf" quality="high" wmode="transparent" bgcolor="#ffffff" width="780" height="60" name="esqueleto" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');
}


function limpa(){

document.form1.responsavel.value="";
document.form1.email.value="";
document.form1.senha.value="";
document.form1.resenha.value="";
document.form1.conta.value="";
document.form1.site.value="";


}



function verifica(){

if(document.form1.responsavel.value==""){
alert( "preencha o campo nome do responsavel!" );
document.form1.responsavel.focus();
return false;
}

if(document.form1.email.value==""){
alert( "preencha o campo email!" );
document.form1.email.focus();
return false;
}

if(document.form1.conta.value==""){
alert( "crie um nome de conta!" );
document.form1.conta.focus();
return false;
}

var tamanho=parseInt(document.form1.conta.value.length);
if(tamanho<4 || tamanho>15){
alert( "o nome da conta deve ter entre 4 e 15 caracteres!" );
document.form1.conta.focus();
return false;
}


var tamanho=parseInt(document.form1.senha.value.length);
if(tamanho<4 || tamanho>8){
alert( "a senha deve ter entre 4 e 8 caracteres!" );
document.form1.senha.focus();
return false;
}


if(document.form1.senha.value != document.form1.resenha.value){
alert( "as senhas não coincidem!" );
document.form1.senha.focus();
return false;
}

if(document.form1.site.value==""){
alert( "preencha o campo site!" );
document.form1.site.focus();
return false;
}

return true;
}
//


