   function getDomz()
   {
		var domainName=document.getElementById('domainName').value;
		document.getElementById('whois_submit').href="ajaxActions/whois_detail.php?det="+domainName;
		document.getElementById('domain_prefix').value=domainName;
		var poststr = "domainName="+domainName+"&rnd="+Math.random();
		loading_data();
		document.getElementById('snapShot').innerHTML="<img src='http://images.websnapr.com/?size=s&key=MDB96OAmdkVi&url="+domainName+"' alt='' style='padding-top:40px;' />" ;
		document.getElementById("alexa").innerHTML="<img src= 'http://traffic.alexa.com/graph?c=1&f=555555&u=" +domainName+ "&u=&u=&u=&u=&r=6m&y=r&z=1&h=250&w=379' />";
		makePOSTRequest("ajaxActions/getResponse.php", poststr);
   }
   function alertContents() 
   {
		if (http_request.readyState == 4) 
		{
			if (http_request.status == 200) 
			{
				var domainName=document.getElementById('domainName').value;
				var found=domainName.search(/http:\/\//)
				if(found>=0) 
				    var name=domainName.split('http:\/\/');
				domainName=name[1];
	            //alert(http_request.responseText);
	            var result = http_request.responseText;
				var mixedEngine=result.split("*");
				var domz=mixedEngine[0].split("=");
				var yahoodir=mixedEngine[1].split("=");
				var googlePr=mixedEngine[2].split("=");
				var googleBckLinks=mixedEngine[3].split("=");
				var yahooBckLinks=mixedEngine[4].split("=");
				var msnBackLinks=mixedEngine[5].split("=");
				var technorati=mixedEngine[6].split("=");
				var xhtml_validation=mixedEngine[7].split("=");
				var site_valuation=mixedEngine[8].split("=");
				var msn_index=mixedEngine[9].split("=");
				var google_index=mixedEngine[10].split("=");
				var alexa_rank=mixedEngine[11].split("=");
				var domain_age=mixedEngine[12].split("=");
				document.getElementById("domzList").innerHTML="DMOZ Listed <a href='http://search.dmoz.org/cgi-bin/search?search="+domainName+"' target='_blank'>"+domz[1]+"</a>";
				document.getElementById("yahooList").innerHTML="Yahoo Directory Listed - <a target='_blank' href='http://search.yahoo.com/search/dir?p="+domainName+"'>"+yahoodir[1]+"</a>";
				document.getElementById("googlePR").innerHTML=googlePr[1];
				document.getElementById("googleBackLinks").innerHTML="Google Back Links - <a href='http://www.google.com/search?q=link%3A"+domainName+"' target='_blank'>"+googleBckLinks[1]+"</a>";
				document.getElementById("yahooBackLinks").innerHTML=yahooBckLinks[1];
				document.getElementById("MSNBackLinks").innerHTML="<a href='http://search.live.com/results.aspx?q=link%3A"+domainName+"' target='_blank'>"+msnBackLinks[1]+"</a>";
				document.getElementById("techno_list").innerHTML="<a href='http://www.technorati.com/search/"+domainName+"' target='_blank'>"+technorati[1]+"</a>";

				document.getElementById("xhtml_validation").innerHTML="<a href='http://validator.w3.org/check?uri=http%3A%2F%2Fwww."+domainName+"' target='_blank'>"+xhtml_validation[1]+"</a>";

				document.getElementById("site_value").innerHTML="$ "+site_valuation[1];

				document.getElementById("MSNindex").innerHTML="<a href='http://search.live.com/results.aspx?q="+domainName+"' target='_blank'>"+msn_index[1]+"</a>";

				document.getElementById("googleIndex").innerHTML="<a href='http://www.google.com/search?q="+domainName+"' target='_blank'>"+google_index[1]+"</a>";

				document.getElementById("alexa_rank_num").innerHTML="<a href='http://alexa.com/data/details/traffic_details?url="+domainName+"' target='_blank'>"+alexa_rank[1]+"</a>";
				document.getElementById("domain_num_age").innerHTML=domain_age[1];

				google_datacenters();
			}
			
			else 
			{
				alert('There was a problem with the request.');
			}
		}
    }

	function addScript(src) 
	{
		if (!document.getElementsByTagName || !document.createElement || !document.appendChild) 
		{
		    return false;
		} 
		else 
		{
		    var script = document.createElement("script");
		    script.type = "text/javascript";
		    script.src = src;
		    document.getElementsByTagName("head")[0].appendChild(script);
		    return true;
		}	
	}

	function google_datacenters()
	{
		var domainName=document.getElementById('domainName').value;
		var poststr = "domainName="+domainName+"&rnd="+Math.random();
		http_request = false;
	    if (window.XMLHttpRequest) 
		{ 
			// Mozilla, Safari,...
	        http_request = new XMLHttpRequest();
	        if (http_request.overrideMimeType) 
			{
	        	// set type accordingly to anticipated content type
	            //http_request.overrideMimeType('text/xml');
	            http_request.overrideMimeType('text/html');
	        }
		}
		else if (window.ActiveXObject) 
			{ // IE
		         try {
		            http_request = new ActiveXObject("Msxml2.XMLHTTP");
		         } catch (e) {
		            try {
		               http_request = new ActiveXObject("Microsoft.XMLHTTP");
		            } catch (e) {}
		         }
		    }
		    if (!http_request) 
			{
		        alert('Cannot create XMLHTTP instance');
		        return false;
		    }
		      
		    http_request.onreadystatechange = function () {
				if (http_request.readyState == 4) 
				{
					if (http_request.status == 200) 
					{
			            //alert(http_request.responseText);
						var result = http_request.responseText;
						var prs = result.split("*");
						var i;
						for(i=1;i<prs.length;i++)
						{
							var rank = prs[i].split("=");
							document.getElementById("datacenter"+i).innerHTML=rank[1];
						}
					}
				}
			}
	    http_request.open('POST',"ajaxActions/googlePr.php",true);
	    http_request.setRequestHeader("Content-type","application/x-www-form-urlencoded");
	    http_request.setRequestHeader("Content-length", poststr.length);
	    http_request.setRequestHeader("Connection", "close");
	    http_request.send(poststr);
	}

function loading_data()
{
	document.getElementById("alexa_rank_num").innerHTML='<img src="images/loading.gif" alt="loading" />';

	document.getElementById("domzList").innerHTML=' DMOZ Listed <img src="images/loading.gif" alt="loading" />';

	document.getElementById("yahooList").innerHTML='Yahoo Directory Listed - <img src="images/loading.gif" alt="loading" />';

	document.getElementById("googlePR").innerHTML='<img src="images/loading.gif" alt="loading" />';

	document.getElementById("googleBackLinks").innerHTML='Google Back Links - <img src="images/loading.gif" alt="loading" />';

	document.getElementById("yahooBackLinks").innerHTML='<img src="images/loading.gif" alt="loading" />';

	document.getElementById("MSNBackLinks").innerHTML='<img src="images/loading.gif" alt="loading" />';

	document.getElementById("techno_list").innerHTML='<img src="images/loading.gif" alt="loading" />';

	document.getElementById("xhtml_validation").innerHTML='<img src="images/loading.gif" alt="loading" />';

	document.getElementById("site_value").innerHTML='<img src="images/loading.gif" alt="loading" />';

	document.getElementById("MSNindex").innerHTML='<img src="images/loading.gif" alt="loading" />';
	
	document.getElementById("googleIndex").innerHTML='<img src="images/loading.gif" alt="loading" />';

	document.getElementById("domain_num_age").innerHTML='<img src="images/loading.gif" alt="loading" />';
	for(i=1;i<=23;i++)
	{
		document.getElementById("datacenter"+i).innerHTML='<img src="images/loading.gif" alt="loading" />';
	}
}