// JavaScript Document

function fncPopup(url, janela, xwidth, xheight) 
{
	janela = window.open(url, janela, 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,maximized=no, maximize=no, width=' + xwidth + ',height=' + xheight + ',top=0,left=0');
	janela.focus();
}

function inserirDiv()
{
	((window.screen.height > 800) && (window.screen.height > 600)) ? document.write('<div class="divGrBorda"></div>') : null;
}	

function verifyCompatibleBrowser()
{ 
    this.ver=navigator.appVersion 
    this.dom=document.getElementById?1:0 
    this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0; 
    this.ie4=(document.all && !this.dom)?1:0; 
    this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0; 
 
    this.ns4=(document.layers && !this.dom)?1:0; 
    this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5) 
    return this 
} 
function frames(nr){
	if (nr==1){
		parent.ctrsup.location.href="supinc_o_o.htm"
		parent.ctrinf.location.href="vercnpj_o_o.htm"
	}
	if (nr==2){
		parent.ctrsup.location.href="supinc_o_a.htm"
		parent.ctrinf.location.href="vercnpj_o_a.htm"
	}
}


