var xmlHttp1
var loadstatustext="<img src='loading1.gif' /> Loading contents..."
function showUser1(content_type,block,search_key,str,np)
{ 
document.getElementById('txtHint1').innerHTML=loadstatustext
search_key = search_key || "0"

str = str || "0"
np = np || "0"


xmlHttp1=GetXmlHttpObject1()
if (xmlHttp1==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 } 
 if (content_type==1)
 {
var url1="get_magazine.php"
 }
 else if (content_type==2)
 {
var url1="get_villages.php"
 }
  else if (content_type==3)
 {
var url1="get_artist.php"
 }
  else if (content_type==4)
 {
var url1="get_films.php"
 }
  else if (content_type==5)
 {
var url1="get_notices.php"
 }
   else if (content_type==6)
 {
var url1="get_polls.php"
 }
   else if (content_type==7)
 {
var url1="get_donors.php"
 }
    else if (content_type==8)
 {
var url1="get_team_members.php"
 }
    else if (content_type==9)
 {
var url1="get_main_events.php"
 }
     else if (content_type==10)
 {
var url1="get_events.php"
 }
     else if (content_type==11)
 {
var url1="get_org.php"
 }
     else if (content_type==12)
 {
var url1="get_guest.php"
 }
      else if (content_type==13)
 {
var url1="get_info.php"
 }
      else if (content_type==23)
 {
var url1="get_links.php"
 }

url1=url1+"?block="+block
if (content_type==11)
{
url1=url1+"&org_type="+search_key
}
else
{
	url1=url1+"&search_key="+search_key
}

url1=url1+"&s="+str
if (np!=0)
{
url1=url1+"&np="+np
}
url1=url1+"&sid1="+Math.random()
xmlHttp1.onreadystatechange=stateChanged1 
xmlHttp1.open("GET",url1,true)
xmlHttp1.send(null)
}

function stateChanged1() 
{ 
if (xmlHttp1.readyState==4 || xmlHttp1.readyState=="complete")
 { 
 document.getElementById("txtHint1").innerHTML=xmlHttp1.responseText 
 } 
}

function GetXmlHttpObject1()
{
var xmlHttp1=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttp1=new XMLHttpRequest();
 }
catch (e)
 {
 //Internet Explorer
 try
  {
  xmlHttp1=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttp1=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttp1;
}
