
function setAlternativa(valor){
    if (valor > 0){ 
	   document.formencuesta.voto_opt[valor - 1].checked = true;
	}
	var dest = 'http://www.prensalibre.com/servicios/NE/vistarapida/resultsurvey.jsp?a='+valor+'&cod='+document.formencuesta.cod.value;
    open(dest, 'PLsurveys', 'width=440,height='+(244+(document.formencuesta.nad.value*23))+',top=75,left=120,resizable=no,scrollbar=no');
}

function verResultados(){
   setAlternativa(0);
}

function tempFloat() {
   var m3_u = (location.protocol=='https:'?'https://d1.openx.org/ajs.php':'http://d1.openx.org/ajs.php');
   var m3_r = Math.floor(Math.random()*99999999999);
   if (!document.MAX_used) document.MAX_used = ',';
   document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);
   document.write ("?zoneid=58679");
   document.write ('&amp;cb=' + m3_r);
   if (document.MAX_used != ',') document.write ("&amp;exclude=" + document.MAX_used);
   document.write (document.charset ? '&amp;charset='+document.charset : (document.characterSet ? '&amp;charset='+document.characterSet : ''));
   document.write ("&amp;loc=" + escape(window.location));
   if (document.referrer) document.write ("&amp;referer=" + escape(document.referrer));
   if (document.context) document.write ("&context=" + escape(document.context));
   if (document.mmm_fo) document.write ("&amp;mmm_fo=1");
   document.write ("'><\/scr"+"ipt>");	
}

function tempBox() {
	var m1_r = Math.floor(Math.random()*99999999999);
	document.write("<a href='http://d1.openx.org/ck.php?n=a2c8c340&amp;cb="+ m1_r +"' target='_blank'><img src='http://d1.openx.org/avw.php?zoneid=75067&amp;cb="+ m1_r +"&amp;n=a2c8c340' border='0' alt='' /></a>");
	//document.write("<img src='http://d1.openx.org/avw.php?zoneid=75067&amp;cb=456789756&amp;n=a2c8c340' border='0' alt='' />");
}


/*adTime=600;  // seconds ad reminder is shown
chanceAd=1; // ad will be shown 1 in X times (put 1 for everytime)

var ns=(document.layers);
var ie=(document.all);
var w3=(document.getElementById && !ie);
var calunit=ns? "" : "px"
adCount=0;
function initAd(){
	if(!ns && !ie && !w3) return;
	if(ie)		adDiv=eval('document.all.publicidad_flotante.style');
	else if(ns)	adDiv=eval('document.layers["publicidad_flotante"]');
	else if(w3)	adDiv=eval('document.getElementById("publicidad_flotante").style');
	randAd=Math.ceil(Math.random()*chanceAd);
        if (ie||w3)
        adDiv.visibility="visible";
        else
        adDiv.visibility ="show";
	if(randAd==1) showAd();
}
function showAd(){
if(adCount<adTime*10){adCount+=1;
	if (ie){documentWidth  =truebody().offsetWidth/2+truebody().scrollLeft-20;
	documentHeight = truebody().scrollTop+5;}	
	else if (ns){documentWidth=window.innerWidth/2+window.pageXOffset-20;
	documentHeight=window.pageYOffset+5;} 
	else if (w3){documentWidth=self.innerWidth/2+window.pageXOffset-20;
	documentHeight=window.pageYOffset+5;} 
	adDiv.left=775;adDiv.top =documentHeight+calunit;
	setTimeout("showAd()",250);}else closeAd();
}
function closeAd(){
if (ie||w3)
adDiv.display="none";
else
adDiv.visibility ="hide";
}*/