

function imgsize1(w1)
{
	w1=document.getElementById(w1)
	oldw1=w1.width;
	neww1=oldw1*0.2;
		var p1 = 1;
		w1.width=0; 
		var actif1 = window.setInterval(function(){ 
		w1.width=neww1*p1; 
		  p1++; 
		if(p1 == 6){  
		window.clearInterval(actif1);
		 p1 = 1; 
		} 
		},50); 
}
function imgsize2(w2)
{
	w2=document.getElementById(w2)	
	oldw2=w2.width;
	neww2=oldw2*0.2;
		var p2 = 1;
		w2.width=0; 
		var actif2 = window.setInterval(function(){ 
		w2.width=neww2*p2; 
		  p2++; 
		if(p2 == 6){  
		window.clearInterval(actif2);
		 p2 = 1; 
		} 
		},50); 
}
function imgsize3(w3)
{
	w3=document.getElementById(w3)	
	oldw3=w3.width;
	neww3=oldw3*0.2;
		var p3 = 1;
		w3.width=0; 
		var actif3 = window.setInterval(function(){ 
		w3.width=neww3*p3; 
		  p3++; 
		if(p3 == 6){  
		window.clearInterval(actif3);
		 p3 = 1; 
		} 
		},50); 
}
var xmlHttp
function getVote()
{
	
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
 {
 alert ("Your browser do not support HTTP Request")
 return
 } 
var vote1 = document.getElementById('vote1');
var vote2 = document.getElementById('vote2');
var vote3 = document.getElementById('vote3');
if (vote1.checked==false && vote2.checked==false && vote3.checked==false)
 {
 alert ("You must choose something!")
 return
 } 

var url="poll_vote.php"
url=url+"?vote1="+vote1.checked
url=url+"&vote2="+vote2.checked
url=url+"&vote3="+vote3.checked
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=stateChanged
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
} 

function stateChanged() 
{ 
 if (xmlHttp.readyState==0 || xmlHttp.readyState==1  || xmlHttp.readyState==2 || xmlHttp.readyState==3)
 { 
 var msg="please wait...";
 document.getElementById("poll").innerHTML=msg;
 } 
 if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
 document.getElementById("poll").innerHTML=xmlHttp.responseText;
 

 } 
} 

function GetXmlHttpObject()
{
var xmlHttp=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttp;
}