var key_tab=9;var basic=true;function openWindow(theURL,winName,features){if(winName.window)winName.focus;popupWin=window.open(theURL,winName,features)
popupWin.focus;}
function deleteConfirm(what,formName,theURL){if(confirm("Você tem certeza que deseja apagar "+what+"? ")){if(formName!=null){formName.submit()}else{window.location.href=theURL}}}
function processTab(){if(window.event.keyCode==key_tab)
{var s=document.selection;var tr=s.createRange();if(tr!=null)
tr.text="\t";window.event.returnValue=false;}}
function handleError()
{return true;}
window.onerror=handleError;function mostra(divID,esq,topo){document.getElementById(divID).style.display="block";document.getElementById(divID).style.left=esq;document.getElementById(divID).style.top=topo;}
function tira(divID){document.getElementById(divID).style.display="none";}
function mostra2(divID,esq,topo){document.getElementById(divID).style.display="block";}
function AtivaChat(){var theURL="ativachat.asp?cPagina="+document.location;window.location=theURL;}
function GerarSWF($arquivo,$largura,$altura,$id){ document.writeln(' <object type="application/x-shockwave-flash" id="' + $id + '" data="' + $arquivo + '" width="' + $largura + '" height="' + $altura + '">'); document.writeln(' <param name="movie" value="' + $arquivo + '" />'); document.writeln(' <param name="menu" value="false" />'); document.writeln(' <param name="wmode" value="transparent" />'); document.writeln(' <embed src="' + $arquivo + '" type="application/x-shockwave-flash" wmode="transparent" menu="false" quality="high" id="' + $id + '" width="' + $largura + '" height="' + $altura + '"></embed>'); document.writeln(' </object>'); }
	function addCSS( css ) { var head, style; var objStyle = document.styleSheets[0]; if(objStyle==null) { head = document.getElementsByTagName('head')[0]; if (!head) { return; } style = document.createElement('style'); style.type = 'text/css'; head.appendChild( style ); } objStyle = document.styleSheets[0]; if ( typeof( objStyle.insertRule ) != 'undefined' ){ objStyle.insertRule( css , 0 ); } else if ( typeof( objStyle.addRule ) != 'undefined' ){ var rules = css.split( '{' ); objStyle.addRule( rules[0] , rules[1].replace( /\}/g , '' ) ); } } 
