function show_poll_spon(){
		var id = 2;
		asp = document.getElementById("incvalue-spon").value;
		//alert(asp);
		var vid = 'spollid'+asp;
		var qid = document.getElementById(vid).value;
		var url="http://www.opinionpoll.in/modules/homebox/sponsored-poll.php?qid="+qid+"&id="+id;
		//alert(url);
		document.getElementById("cont-in-spoll").innerHTML = "<iframe src='"+url+"' frameborder='0' scrolling='no' width='365px' style='min-height: 387px; max-height: 415px;'>";
		//document.getElementById("cont-in-fpoll").innerHTML = asp;
		asp++;
		if(asp > 5)
			asp = 0;
		if(asp == 0)
			tur = 1;
		else
			tur = asp;
		//alert(document.getElementById("bar-icons-pro").style.backgroundImage);
		document.getElementById("incvalue-spon").value = asp;
		document.getElementById("bar-icons-pros-spon").src = "/themes/images/bar/bar"+tur+".png";
		intid = setInterval("show_poll_spon()",30000);
		clearInterval(intid);
}
function chval_spon(val) {
		asp = document.getElementById("incvalue-spon").value;
		if(asp != 0)
			asp = asp - 1;
		if(val == 'pre')
			asp = parseInt(asp) - 1;
		if(val == 'next')
			asp = parseInt(asp) + 1;
		if(asp <0) 
			asp = 0;
		if(asp >4)
			asp = 0;
		document.getElementById("incvalue-spon").value = asp;
		//setTimeout("show_poll()",15000);		
		show_poll_spon();
}
