function result(sId)
{
	//alert(sId)
            if(sId == '1')
			{
				$("#tr1").show();
				$("#a").show();

				$("#tr2").hide();
				$("#tr3").hide();
			}
			else if(sId == '2')
			{
				$("#a").hide();
				$("#tr2").show();
				$("#tr1").hide();
				$("#tr3").hide();
        	}
			else if(sId == '3')
			{
				$("#a").hide();
				$("#tr3").show();
				$("#tr1").hide();
				$("#tr2").hide();
			}
	
	$('#sid').html('<p><img src="http://static.ibnlive.com/pix/election/loadingred.gif" border = "0"/></p>');
	$.post("/politics/loksabhafinal/aliancepartyresult.php", {'id': sId}, function(data)
		{
		 
		var data = data.split("!@#$");
     	$("#sid").html(data[0]);
		$("#dec").html(data[1]);
		
		});

		
//startTimer();
}


function startTimer()
                {
					//alert(s)
                        alertTimerId = setTimeout("result('1')", 180000);
                        
                } 


function stateResult(sId)
{
	
	$("#cid").html('');
	$.post("/politics/loksabhafinal/stateBox.php", {'stateID': sId}, function(data)
		{
		$('#sid').html('<p><img src="/pix/election/loadingred.gif" border = "0"/></p>');
     	$("#sid").html(data);
		});

}

function consResult(cName)
{
//	alert(cName)
	$.post("/politics/loksabhafinal/consBox.php", {'cName': cName}, function(data)
		{
		$("#cid").html(data);
		});

}


function result300(sId)
{
	//alert(sId)
            if(sId == '1')
			{
				$("#tr1_300").show();
				$("#a300").show();

				$("#tr2_300").hide();
				$("#tr3_300").hide();
			}
			else if(sId == '2')
			{
				$("#a300").hide();
				$("#tr2_300").show();
				$("#tr1_300").hide();
				$("#tr3_300").hide();
        	}
			else if(sId == '3')
			{
				$("#a300").hide();
				$("#tr3_300").show();
				$("#tr1_300").hide();
				$("#tr2_300").hide();
			}
	
	$('#sid300').html('<p><img src="http://static.ibnlive.com/pix/election/loadingred.gif" border = "0"/></p>');
	$.post("/politics/loksabhafinal/aliancepartyresult300.php", {'id': sId}, function(data)
		{
		 
		var data = data.split("!@#$");
     	$("#sid300").html(data[0]);
		//$("#dec").html(data[1]);
		
		});

		
//startTimer();
}

