var xmlHttp

function showTag(str)
{
	if (str.length==0)
	{ 
		document.getElementById("tagcloud").innerHTML=""
		return
	}
	
	xmlHttp=GetXmlHttpObject()
	
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	} 
	
		/*var url="gethint.php"
		url=url+"?q="+str
		url=url+"&sid="+Math.random()*/
		
		var url="../../tagcloud/tagcloudbox.php?channel="
		url=url+str
		//url=url+"&sid="+Math.random()
		
		xmlHttp.onreadystatechange=stateChanged 
		xmlHttp.open("GET",url)
		xmlHttp.send(null)
} 

function stateChanged() 
{ 
	if (xmlHttp.readyState == 4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("tagcloud").innerHTML=xmlHttp.responseText 		
	} 
	
	
} 

function GetXmlHttpObject()
{ 
	var objXMLHttp=null
	
	if (window.XMLHttpRequest)
	{
		objXMLHttp= new XMLHttpRequest()
	}
	else if (window.ActiveXObject)
	{
		objXMLHttp= new ActiveXObject("Microsoft.XMLHTTP")
	}
	return objXMLHttp
}

function poptagdef(){
	
	var generator=window.open('','name', 'height=351 ,width = 300');  
    htm = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><title>Hottest Tags - What\'s This?</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><style>body{	width:300px;	height:351px;	margin:0;	padding:0;	font-family:Arial, Verdana, Helvetica, sans-serif;	font-size:11px;	background:url(http://images.inquirer.net/images/hottest_tags_whats-this-bg.jpg) no-repeat;}#all{	width:260px;	margin:0 auto;}h1{	font-size:14px;	color:#0078FF;	margin:10px 0 0 0 0;padding:0;}#logo{	position:relative;	top:6px;}</style></head><body><div id="all"><h1>What are these <img src="http://images.inquirer.net/images/hottest_tags-logo.jpg" id="logo" alt="Hottest Tags" title="Hottest Tags" width="119" height="24" />?</h1>  <p>The <strong>Hottest Tag</strong> box or &quot;<strong>tag cloud</strong>&quot;     is a convenient way to find out which topics are getting the most coverage     on INQUIRER.net and keeping track of articles classified or &quot;tagged&quot;    under these topics.</p>  <p>All articles on INQUIRER.net are tagged before being posted and the Hottest     Tags box lists 20 tags that have at least one article classified under them     in the last 30 days, for the area of the site in which the box appears.</p> <p>Tags with more articles appear in larger type; tags with fewer articles     in smaller type. Bringing your mouse over a tag shows you the number of articles     classified under that tag and clicking on a tag leads you to a list of articles     under that tag.</p>  <p>To view more tags and a list that covers all areas of the site, click on     the &quot;More&quot; link under each Hottest Tag box.</p></div></body></html>   ';
    generator.document.write(htm);
    generator.document.close();
}
