// JavaScript Document



var xmlHttp



function showUser(str,tmpl)

{

 if(!str=="")
 {
xmlHttp=GetXmlHttpObject()

if (xmlHttp==null)

 {

 alert ("Browser does not support HTTP Request")

 return

 }
if(tmpl==1)

{
var url="getContent.php"
}
if(tmpl==2)
{
	
var url="getContent2.php"
}
if(tmpl==3)
{
	
var url="getContent3.php"
}
if(tmpl==4)
{
	
var url="getContent4.php"
}
if(tmpl==5)
{
	
var url="getContent5.php"
}
if(tmpl==6)
{
	
var url="getContent6.php"
}
if(tmpl==7)
{
	
var url="getContent7.php"
}

url=url+"?q="+str

url=url+"&sid="+Math.random()

xmlHttp.onreadystatechange=stateChanged 

xmlHttp.open("GET",url,true)

xmlHttp.send(null)

}function stateChanged() 

{ 

if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")

 { 

 document.getElementById("GetContent").innerHTML=xmlHttp.responseText 

 } 

}function GetXmlHttpObject()

{

var xmlHttp=null;

try

 {

 // Firefox, Opera 8.0+, Safari

 xmlHttp=new XMLHttpRequest();

 }

catch (e)

 {

 //Internet Explorer

 try

  {

  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");

  }

 catch (e)

  {

  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");

  }

 }

return xmlHttp;
}

}
