function get_polls(id,result)
{
//document.getElementById('content').innerHTML="<img align='center' src='images/loading_wh.gif'  alt=''/>";
var xmlhttp;
var temp;

try
	{
		//Firebox,Opera,safari
		xmlhttp= new XMLHttpRequest();
	}
	catch(e)
	{
		//IE
		try
		{
		 xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch(e)
		{
			try
			{
				xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch(e)
			{
				alert("Your Browser Does Not Support Ajax");
				return false;			
			}
		}
	}
	xmlhttp.onreadystatechange=function()
	{
		if(xmlhttp.readyState==4)
		{	
		get_view_testimonials(id)
			//if(xmlhttp.responseText==""){
			//document.getElementById('msg').innerHTML="Thanks for casting your vote.";	
			//alert("Thanks for casting your vote.");
			//}else{
			//document.getElementById('msg').innerHTML=xmlhttp.responseText;
			//}
			//document.getElementById('msg').innerHTML=xmlhttp.responseText;						
		}
	}
	xmlhttp.open("get","polls.php?id="+id+"&result="+result,true);
	xmlhttp.send(null);	
}

function get_polls_index(id,result)
{
//document.getElementById('content').innerHTML="<img align='center' src='images/loading_wh.gif'  alt=''/>";
var xmlhttp;

try
	{
		//Firebox,Opera,safari
		xmlhttp= new XMLHttpRequest();
	}
	catch(e)
	{
		//IE
		try
		{
		 xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch(e)
		{
			try
			{
				xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch(e)
			{
				alert("Your Browser Does Not Support Ajax");
				return false;			
			}
		}
	}
	xmlhttp.onreadystatechange=function()
	{
		if(xmlhttp.readyState==4)
		{	
		get_view_index(id);
			//if(xmlhttp.responseText==""){
			//document.getElementById('msg'+id).innerHTML="Thanks for casting your vote.";	
			
			//alert("Thanks for casting your vote.");
			//}else{
			//document.getElementById('msg'+id).innerHTML=xmlhttp.responseText;
			//}
			//document.getElementById('msg').innerHTML=xmlhttp.responseText;						
		}
	}
	xmlhttp.open("get","polls.php?id="+id+"&result="+result,true);
	xmlhttp.send(null);	
}

function get_polls_all(id,result)
{
//document.getElementById('content').innerHTML="<img align='center' src='images/loading_wh.gif'  alt=''/>";
var xmlhttp;

try
	{
		//Firebox,Opera,safari
		xmlhttp= new XMLHttpRequest();
	}
	catch(e)
	{
		//IE
		try
		{
		 xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch(e)
		{
			try
			{
				xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch(e)
			{
				alert("Your Browser Does Not Support Ajax");
				return false;			
			}
		}
	}
	xmlhttp.onreadystatechange=function()
	{
		if(xmlhttp.readyState==4)
		{	
		get_view_poll1(id);
			//if(xmlhttp.responseText==""){
			//document.getElementById('msg'+id).innerHTML="Thanks for casting your vote.";	
			
			//alert("Thanks for casting your vote.");
			//}else{
			//document.getElementById('msg'+id).innerHTML=xmlhttp.responseText;
			//}
			//document.getElementById('msg').innerHTML=xmlhttp.responseText;						
		}
	}
	xmlhttp.open("get","polls.php?id="+id+"&result="+result,true);
	xmlhttp.send(null);	
}

function get_view_index(id)
{
//document.getElementById('content').innerHTML="<img align='center' src='images/loading_wh.gif'  alt=''/>";
var xmlhttp;
	try
	{
		//Firebox,Opera,safari
		xmlhttp= new XMLHttpRequest();
	}
	catch(e)
	{
		//IE
		try
		{
		 xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch(e)
		{
			try
			{
				xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch(e)
			{
				alert("Your Browser Does Not Support Ajax");
				return false;			
			}
		}
	}
	xmlhttp.onreadystatechange=function()
	{
		if(xmlhttp.readyState==4)
		{
			
			temp=document.getElementById('castyourvote').innerHTML;
			
			document.getElementById('castyourvote').innerHTML=xmlhttp.responseText;
			//document.getElementById('c').style.display="none";
		}
	}
	xmlhttp.open("get","view_result.php?id="+id,true);
	xmlhttp.send(null);	
}
function show_index(id)
{
	document.getElementById('c').innerHTML=temp;
	
}


function show_ind(id)
{
	document.getElementById('castyourvote').innerHTML=temp;
	
}

function show_play(id)
{
	document.getElementById('box').innerHTML=temp;
	
}

function show_article(id)
{
	var xmlhttp;
	try
	{
		//Firebox,Opera,safari
		xmlhttp= new XMLHttpRequest();
	}
	catch(e)
	{
		//IE
		try
		{
		 xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch(e)
		{
			try
			{
				xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch(e)
			{
				alert("Your Browser Does Not Support Ajax");
				return false;			
			}
		}
	}
	xmlhttp.onreadystatechange=function()
	{
		if(xmlhttp.readyState==4)
		{
			//temp=document.getElementById('c'+id).innerHTML;
			//alert(temp);
			//document.getElementById('c'+id).style.display="block";
			document.getElementById('c'+id).innerHTML=xmlhttp.responseText;						
		}
	}
	xmlhttp.open("get","view_result_article_again.php?id="+id,true);
	xmlhttp.send(null);	
}

function show_testimonial(id)
{
	var xmlhttp;
	try
	{
		//Firebox,Opera,safari
		xmlhttp= new XMLHttpRequest();
	}
	catch(e)
	{
		//IE
		try
		{
		 xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch(e)
		{
			try
			{
				xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch(e)
			{
				alert("Your Browser Does Not Support Ajax");
				return false;			
			}
		}
	}
	xmlhttp.onreadystatechange=function()
	{
		if(xmlhttp.readyState==4)
		{
			//temp=document.getElementById('c'+id).innerHTML;
			//alert(temp);
			//document.getElementById('c'+id).style.display="block";
			document.getElementById('c'+id).innerHTML=xmlhttp.responseText;						
		}
	}
	xmlhttp.open("get","view_result_testimonial_again.php?id="+id,true);
	xmlhttp.send(null);	
}

function show_all(id)
{
	var xmlhttp;
	try
	{
		//Firebox,Opera,safari
		xmlhttp= new XMLHttpRequest();
	}
	catch(e)
	{
		//IE
		try
		{
		 xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch(e)
		{
			try
			{
				xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch(e)
			{
				alert("Your Browser Does Not Support Ajax");
				return false;			
			}
		}
	}
	xmlhttp.onreadystatechange=function()
	{
		if(xmlhttp.readyState==4)
		{
			//temp=document.getElementById('c'+id).innerHTML;
			//alert(temp);
			//document.getElementById('c'+id).style.display="block";
			document.getElementById('c'+id).innerHTML=xmlhttp.responseText;						
		}
	}
	xmlhttp.open("get","view_result_poll_again.php?id="+id,true);
	xmlhttp.send(null);	
}

function get_view_testimonials(id)
{
	//alert(page);

var xmlhttp;
	try
	{
		//Firebox,Opera,safari
		xmlhttp= new XMLHttpRequest();
	}
	catch(e)
	{
		//IE
		try
		{
		 xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch(e)
		{
			try
			{
				xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch(e)
			{
				alert("Your Browser Does Not Support Ajax");
				return false;			
			}
		}
	}
	xmlhttp.onreadystatechange=function()
	{
		if(xmlhttp.readyState==4)
		{
			temp=document.getElementById('c').innerHTML;
			//alert(temp);
			//document.getElementById('c'+id).style.display="block";
			document.getElementById('c').innerHTML=xmlhttp.responseText;						
		}
	}
	xmlhttp.open("get","view_result_testimonial.php?id="+id,true);
	xmlhttp.send(null);	
}

function get_view_testimonials_n(id)
{
//document.getElementById('content').innerHTML="<img align='center' src='images/loading_wh.gif'  alt=''/>";
var xmlhttp;
	try
	{
		//Firebox,Opera,safari
		xmlhttp= new XMLHttpRequest();
	}
	catch(e)
	{
		//IE
		try
		{
		 xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch(e)
		{
			try
			{
				xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch(e)
			{
				alert("Your Browser Does Not Support Ajax");
				return false;			
			}
		}
	}
	xmlhttp.onreadystatechange=function()
	{
		if(xmlhttp.readyState==4)
		{
			temp=document.getElementById('c').innerHTML;
			document.getElementById('c').innerHTML=xmlhttp.responseText;						
		}
	}
	xmlhttp.open("get","view_result_testimonial_n.php?id="+id,true);
	xmlhttp.send(null);	
}

function get_view_testimonials_p(id)
{
//document.getElementById('content').innerHTML="<img align='center' src='images/loading_wh.gif'  alt=''/>";
var xmlhttp;
	try
	{
		//Firebox,Opera,safari
		xmlhttp= new XMLHttpRequest();
	}
	catch(e)
	{
		//IE
		try
		{
		 xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch(e)
		{
			try
			{
				xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch(e)
			{
				alert("Your Browser Does Not Support Ajax");
				return false;			
			}
		}
	}
	xmlhttp.onreadystatechange=function()
	{
		if(xmlhttp.readyState==4)
		{
			temp=document.getElementById('c').innerHTML;
			document.getElementById('c').innerHTML=xmlhttp.responseText;						
		}
	}
	xmlhttp.open("get","view_result_testimonial_p.php?id="+id,true);
	xmlhttp.send(null);	
}

function get_view_testimonials_f(id)
{
//document.getElementById('content').innerHTML="<img align='center' src='images/loading_wh.gif'  alt=''/>";
var xmlhttp;
	try
	{
		//Firebox,Opera,safari
		xmlhttp= new XMLHttpRequest();
	}
	catch(e)
	{
		//IE
		try
		{
		 xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch(e)
		{
			try
			{
				xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch(e)
			{
				alert("Your Browser Does Not Support Ajax");
				return false;			
			}
		}
	}
	xmlhttp.onreadystatechange=function()
	{
		if(xmlhttp.readyState==4)
		{
			temp=document.getElementById('c').innerHTML;
			document.getElementById('c').innerHTML=xmlhttp.responseText;						
		}
	}
	xmlhttp.open("get","view_result_testimonial_f.php?id="+id,true);
	xmlhttp.send(null);	
}

function get_view_testimonials_frd(id)
{
//document.getElementById('content').innerHTML="<img align='center' src='images/loading_wh.gif'  alt=''/>";
var xmlhttp;
	try
	{
		//Firebox,Opera,safari
		xmlhttp= new XMLHttpRequest();
	}
	catch(e)
	{
		//IE
		try
		{
		 xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch(e)
		{
			try
			{
				xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch(e)
			{
				alert("Your Browser Does Not Support Ajax");
				return false;			
			}
		}
	}
	xmlhttp.onreadystatechange=function()
	{
		if(xmlhttp.readyState==4)
		{
			temp=document.getElementById('c').innerHTML;
			document.getElementById('c').innerHTML=xmlhttp.responseText;						
		}
	}
	xmlhttp.open("get","view_result_testimonial_frd.php?id="+id,true);
	xmlhttp.send(null);	
}

function get_view_article(id)
{
//document.getElementById('content').innerHTML="<img align='center' src='images/loading_wh.gif'  alt=''/>";
var xmlhttp;
	try
	{
		//Firebox,Opera,safari
		xmlhttp= new XMLHttpRequest();
	}
	catch(e)
	{
		//IE
		try
		{
		 xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch(e)
		{
			try
			{
				xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch(e)
			{
				alert("Your Browser Does Not Support Ajax");
				return false;			
			}
		}
	}
	xmlhttp.onreadystatechange=function()
	{
		if(xmlhttp.readyState==4)
		{
			temp=document.getElementById('c').innerHTML;
			document.getElementById('c').innerHTML=xmlhttp.responseText;						
		}
	}
	xmlhttp.open("get","view_result_article.php?id="+id,true);
	xmlhttp.send(null);	
}



function get_view_forum(id)
{
//document.getElementById('content').innerHTML="<img align='center' src='images/loading_wh.gif'  alt=''/>";
var xmlhttp;
	try
	{
		//Firebox,Opera,safari
		xmlhttp= new XMLHttpRequest();
	}
	catch(e)
	{
		//IE
		try
		{
		 xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch(e)
		{
			try
			{
				xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch(e)
			{
				alert("Your Browser Does Not Support Ajax");
				return false;			
			}
		}
	}
	xmlhttp.onreadystatechange=function()
	{
		if(xmlhttp.readyState==4)
		{
			temp=document.getElementById('c').innerHTML;
			document.getElementById('c').innerHTML=xmlhttp.responseText;						
		}
	}
	xmlhttp.open("get","view_result_forum.php?id="+id,true);
	xmlhttp.send(null);	
}

function get_view_play(id)
{
//document.getElementById('content').innerHTML="<img align='center' src='images/loading_wh.gif'  alt=''/>";
var xmlhttp;
	try
	{
		//Firebox,Opera,safari
		xmlhttp= new XMLHttpRequest();
	}
	catch(e)
	{
		//IE
		try
		{
		 xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch(e)
		{
			try
			{
				xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch(e)
			{
				alert("Your Browser Does Not Support Ajax");
				return false;			
			}
		}
	}
	xmlhttp.onreadystatechange=function()
	{
		if(xmlhttp.readyState==4)
		{
			temp=document.getElementById('box').innerHTML;
			document.getElementById('box').innerHTML=xmlhttp.responseText;						
		}
	}
	xmlhttp.open("get","view_result_play.php?id="+id+"&sid="+Math.random(),true);
	xmlhttp.send(null);	
}



function get_view_poll(id)
{
//document.getElementById('content').innerHTML="<img align='center' src='images/loading_wh.gif'  alt=''/>";
var xmlhttp;
	try
	{
		//Firebox,Opera,safari
		xmlhttp= new XMLHttpRequest();
	}
	catch(e)
	{
		//IE
		try
		{
		 xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch(e)
		{
			try
			{
				xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch(e)
			{
				alert("Your Browser Does Not Support Ajax");
				return false;			
			}
		}
	}
	xmlhttp.onreadystatechange=function()
	{
		if(xmlhttp.readyState==4)
		{
				
			//alert("Your Vote is inserted Successfully");
			document.getElementById('c'+id).innerHTML=xmlhttp.responseText;						
		}
	}
	xmlhttp.open("get","view_result_polls.php?id="+id,true);
	//xmlhttp.open("get","test_poll.php?id="+id,true);
	xmlhttp.send(null);	
}

function get_view_poll1(id)
{
//document.getElementById('content').innerHTML="<img align='center' src='images/loading_wh.gif'  alt=''/>";
var xmlhttp;
	try
	{
		//Firebox,Opera,safari
		xmlhttp= new XMLHttpRequest();
	}
	catch(e)
	{
		//IE
		try
		{
		 xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch(e)
		{
			try
			{
				xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch(e)
			{
				alert("Your Browser Does Not Support Ajax");
				return false;			
			}
		}
	}
	xmlhttp.onreadystatechange=function()
	{
		if(xmlhttp.readyState==4)
		{
				
			//alert("Your Vote is inserted Successfully");
			document.getElementById('c'+id).innerHTML=xmlhttp.responseText;						
		}
	}
	xmlhttp.open("get","view_result_polls.php?id="+id+"&msg=Thanks for casting your vote.",true);
	//xmlhttp.open("get","test_poll.php?id="+id,true);
	xmlhttp.send(null);	
}
