// JavaScript Document
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
<!-- Begin
function stopError() {return true;} window.onerror = stopError;  


function getImage(){
	var favimage = getCookie('image'); 
	if (favimage == null) {
		setCookie('image', favimage, exp); 
	}
	document.body.background=favimage; 
}


function getCookieVal (offset) {  
	var endstr = document.cookie.indexOf (";", offset);  
	if (endstr == -1)    
	endstr = document.cookie.length;  
	return unescape(document.cookie.substring(offset, endstr));
}



function getCookie () {  
	var arg = "image" + "=";  
	var alen = arg.length;  
	var clen = document.cookie.length;  
	var i = 0;  
	while (i < clen) {    
		var j = i + alen;    
		if (document.cookie.substring(i, j) == arg)
		return getCookieVal (j);    
		i = document.cookie.indexOf(" ", i) + 1;    
		if (i == 0) break;   
	}  
	return null;
}


function setCookie(cookieName,cookieValue) {
	var today = new Date();
	var expire = new Date();
	expire.setTime(today.getTime() + 3600000*24*365);
	document.body.background=cookieValue;
	document.cookie = cookieName+"="+escape(cookieValue)
				 + ";expires="+expire.toGMTString();
}


function exibe() {
	document.getElementById('expand').style.overflow='visible';
}

function esconde() {
	document.getElementById('expand').style.overflow='hidden';
}

function enviando(obj,url,alvo,w,h){
		document.forms[obj].method="post";
		document.forms[obj].action=url;
		document.forms[obj].target=alvo;
		document.forms[obj].submit(pop(url,alvo,w,h));
}


function pop(url,alvo,w,h){
	var drk;
	var Tpos=(screen.height) ? (screen.height-h)/2 : 0;
	var Lpos=(screen.width) ? (screen.width-w)/2 : 0;
	drk=window.open(url,alvo,'width='+w+', height='+h+', top='+Tpos+', left='+Lpos+', menubar=no, resizable=no, status=no, location=no, scrollbars=no, directories=no, toolbar=no, hotkeys=no');
	drk.focus();
}

function ver_resultado(n,idpergunta)
{
	window.open('enquetes_resultados.asp?idpergunta='+idpergunta,'_blank','width=300,height=320, toolbar=no, location=no, status=no, menubar=no, scrollbars=auto, resizable=no')
}

function popupcob(url,alvo,w,h) {
	var drk;
	var Tpos=(screen.height) ? (screen.height-h)/2 : 0;
	var Lpos=(screen.width) ? (screen.width-w)/2 : 0;
	drk=window.open(url,alvo,'width='+w+', height='+h+', top='+Tpos+', left='+Lpos+', menubar=no, resizable=no, status=no, location=no, scrollbars=no, directories=no, toolbar=no, hotkeys=no');
	drk.focus();
}
// -->