
function include(arquivo){
//By Fabrício Magri e Micox
//http://elmicox.blogspot.com/2006/12/include-em-javascript.html
 var novo = document.createElement('div');
 novo.setAttribute('type', 'text/html');
 novo.setAttribute('src', arquivo);
 document.getElementsByTagName('head')[0].appendChild(novo);
 //apos a linha acima o navegador inicia o carregamento do arquivo
 //portanto aguarde um pouco até o navegador baixá-lo. :)
}

 function AbreJanela()
{
//var node0 = document.createElement('CENTER'); node0.controlContainer=node0;
//node0.innerHTML='<DIV align="right" style="padding-bottom: 4px;"></DIV>';
//
//repeats = 0.0;
//startTime=new Date().getTime();
//do {
//d = document.createElement("DIV"); SetControl(d); endTime=new Date().getTime(); ++repeats;
//
//}
//while (((endTime-startTime)/1000.0) < 1.0);
//document.getElementById('divResult1').appendChild( document.createTextNode("innerHTML='...' = "+repeats/((endTime-startTime)/1000.0)) );


// var novo = document.createElement('div');
// novo.setAttribute('type', 'text/html');
// novo.setAttribute('src', '../xtras/JanelaHTML.asp');
// //novo.setAttribute('id', 'texte');
// document.getElementsByTagName('center')[0].appendChild(novo);
// alert(document.getElementsById('texte'));
}