
// JavaScript Document
var xmlHttp123;

function supcon(str)
{ 
xmlHttp123=GetXmlHttpObject();
	if (xmlHttp123==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	}
	if(str != 0)
	{
		var url="regforsupcon.php";
		url=url+"?forsupcount="+str;
		url=url+"&sid="+Math.random();
		xmlHttp123.onreadystatechange=function()
		{
			if (xmlHttp123.readyState==4 || xmlHttp123.readyState=="complete")
			{ 
				document.getElementById("forcoun").innerHTML=xmlHttp123.responseText;
			}
			else if (xmlHttp123.readyState!=4 || xmlHttp123.readyState!="complete")
			{ 
				document.getElementById("forcoun").innerHTML='<img src="../../images/ajax-loader.gif">';
			} 
		}
		xmlHttp123.open("GET",url,true);
		xmlHttp123.send(null);
	}
}

