/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

function abrir(url){
    
     document.location.href = url;
    
}
function verMat(url){
    
     eval("var v_url = 'perfil.rp?op=con,,'+document.getElementById(\"conID_"+url+"\").value+'.html'");
    
     document.location.href = v_url;
    
}

function verCat(url){         
     
     document.location.href = 'perfil.rp?op=cat,,'+url+'.html';
    
}

function verMatSec(){              
     document.location.href = 'perfil.rp?op=con,,'+document.getElementById("conID_B").value+'.html';    
}

function abrirWin(win,w,h){
	
       	// var w = 600;
	// var h = 400;
	// Calculo para centralizar Janela
  	var esquerda = (screen.width - w)/2;
  	var topo = (screen.height - h)/2;		
         
	window.open(win,'WIN','height=' + h + ', width=' + w + ', top=' + topo + ', left=' + esquerda+',scrollbars=no'); 
		
}

function abrirSite(){


	 document.location.href = document.getElementById("guias").value;   

}


        function varEmail(){
          ob = document.getElementById("user");
          ob.value="@revistaperfil.com.br";         
          if(ob.setSelectionRange)
          ob.setSelectionRange(0, 0);
      
        }
        
        
        
var bo_ns_id = 0;

function startIeFix(){ 

if(isIE()){ 
document.write('<div id="bo_ns_id_' + bo_ns_id + '"><!-- ');
}
}

function endIeFix(){ 
if(isIE()){ 
document.write('</div>'); 
var theObject = document.getElementById("bo_ns_id_" + bo_ns_id++); 
var theCode = theObject.innerHTML; 
theCode = theCode.substring(4 ,9+theCode.indexOf("</object>")) 
document.write(theCode); }}

function isIE(){ // only for Win IE 6+ // But not in Windows 98, Me, NT 4.0, 2000 
var strBrwsr= navigator.userAgent.toLowerCase(); 
if(strBrwsr.indexOf("msie") > -1 && strBrwsr.indexOf("mac") < 0){ 
if(parseInt(strBrwsr.charAt(strBrwsr.indexOf("msie")+5)) < 6){ 
return false; } 

if(strBrwsr.indexOf("win98") > -1 || strBrwsr.indexOf("win 9x 4.90") > -1 ||strBrwsr.indexOf("winnt4.0") > -1 ||strBrwsr.indexOf("windows nt 5.0") > -1) 
{ 
return false; 
} 
return true; 
}

else{ 
return false; }

}        