//abre form comentário
function abrefecha(obj){ 
var el = document.getElementById(obj); 
if(el.style.display != "block"){ 
el.style.display = "block"; 
}else{ 
el.style.display = "none"; 
} 
} 

function OpenPopup(arq, width, height, scroll)
{    
    var URL = arq
    var W = width
    var H = height
    var S = scroll
    var desktop = window.open( ""+URL+"", "_blank",'top=200','left=150', "width="+W+",height="+H+",toolbar=no,location=no,status=no,menubar=no,scrollbars="+S+",resizable=no" );
}

<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
function janela(url)
{
window.open(url,'','top=200,left=150,width=770,height=420,scrollbars=0,status=1,resizable=0')
}


var xmlHttp;



function createXMLHttpRequest() {
        if (window.ActiveXObject) {
                xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
        }
        else if (window.XMLHttpRequest) {
                xmlHttp = new XMLHttpRequest();
        }
}


function vota(url) {
	for (i = 0; i < 10; i++) {
                        if (document.classificar["resposta["+i+"]"].checked != false) {                    
                                createXMLHttpRequest();
							 
								  
                                document.getElementById("avisoE").innerHTML = "Obrigado Pelo Voto";
                                //alert(document.classificar["resposta["+i+"]"].value);
								
							 
								window.open('enquete/index.php?enq='+document.classificar["resposta["+i+"]"].value,'','top=200,left=300,width=350,height=420,scrollbars=0,status=1,resizable=0')
                                return true;
                        }
                }
    
          req.send(null);
}

function resultado() {
window.open('enquete/resul.php','classificar','top=200,left=300,width=350,height=420,scrollbars=0,status=1,resizable=0')	
}

function addSWF (URL, WIDTH, HEIGHT, TRANSPARENT)
{
document.write (' <object classid="clsid:27CDB6E-AE6D-11cf-96B8-444553540000" ');
document.write (' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" ');
document.write (' width="'+ WIDTH +'" height="'+ HEIGHT +'">');
document.write (' <param name="movie" value="'+ URL +'" />');
document.write (' <param name="quality" value="high" />');

if ( TRANSPARENT ) {
  document.write (' <param name="Wmode" value="Transparent" />'); 
}

document.write (' <embed src="'+ URL +'" quality="high" ');

if ( TRANSPARENT ) {
document.write (' Wmode = "transparent" ');
}

document.write (' pluginspage="http://www.macromedia.com/go/getflashplayer" ');
document.write (' type="application/x-shockwave-flash" width="'+ WIDTH +'" height="'+ HEIGHT +'"></embed> ');
document.write (' </object>');

}


