
	// --------------------------AJAX SCRIPT----------------
		var xmlHttp = false;
		try
		{
			xmlHttp = new XMLHttpRequest();
		}
		catch (trymicrosoft)
		{
			try
			{
				xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
			}
			catch (othermicrosoft)
			{
				try
				{
					xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
				}
				catch (failed)
				{
					xmlHttp = false;
				}
			}
		}
		function callserver()
		{
			var str=document.form1.searchtext.value;
			if(str.length >0)
			{
				document.getElementById("chatelements").style.display="block";
				//alert(str);
				var url="http://172.16.15.3/yuddy/result.php?searchvar="+str;
				xmlHttp.open("GET", url, true);
				xmlHttp.onreadystatechange = updatePage;
				xmlHttp.send(null);
			}
			else{ document.getElementById("chatelements").style.display="none"; 	}
		}
		function updatePage()
		{
			if (xmlHttp.readyState == 4)
			{
				var linkresp1 = xmlHttp.responseText.split("|");
				var linkresp = linkresp1[0];
				var response2 = linkresp1[1];
				if (response2 =="0"){ document.getElementById("chatelements").style.display="none";  }
				else{
				document.getElementById("chatelements").innerHTML =linkresp;
				document.form1.select.focus();	}
			}
		}
	//-----------------------------------------------------------------------------------------
function UpdateReport(cid,artlnm)
{

		var url2="http://172.16.15.3/yuddy/updatereport.php?cid=" + cid + "&artnm=" + artlnm;
		//alert(url2);
		//alert(xmlHttp);
		xmlHttp.open("GET",url2,true);
		xmlHttp.onreadystatechange=function()
		{
			if(xmlHttp.readyState==4)
			{
				var res_str ;
				res_str = xmlHttp.responseText;
				//alert(xmlHttp.responseText);
				//document.getElementById(rep).innerHTML = res_str;
			}
		}
		xmlHttp.send(null);
}
function bookmarksite(title, url)
{
if (document.all)
window.external.AddFavorite(url, title);
else if (window.sidebar)
window.sidebar.addPanel(title, url, "")
}
function fun(cname,aname)
{
	document.location = "lyrics_01.php?celname="+cname+"&albumname="+aname+"&song="+document.frm.sng.value;
}
