var xmlHttp;
var id_str="";
function action1()
{ 
//id_str="pg"+id;
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
var url="./test.html";
//url=url+"?q="+str+"&id="+id;
url=url+"?sid="+Math.random();
xmlHttp.onreadystatechange=showpage;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}
function act()
{ 
//id_str="pg"+id;
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
var url="./aj_sec.html";
//url=url+"?q="+str+"&id="+id;
url=url+"?sid="+Math.random();
xmlHttp.onreadystatechange=showpage1;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}
function showpage()
{ 
if (xmlHttp.readyState==4)
{ 
document.getElementById("lang").innerHTML=xmlHttp.responseText;
//document.getElementById("container").innerHTML=;
}
else
{
	//document.getElementById("login").innerHTML=" ";
}
}

function showpage1()
{ 
if (xmlHttp.readyState==4)
{ 
document.getElementById("lang").innerHTML=xmlHttp.responseText;
//document.getElementById("container").innerHTML=;
}
else
{
	//document.getElementById("login").innerHTML=" ";
}
}
/****************************************************/


function moveup(id,rank){
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
var url="moveup.php";
url=url+"?q="+rank+"&id="+id;
url=url+"&sid="+Math.random();
//xmlHttp.onreadystatechange=stateChanged1;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}
function stateChanged()
{ 
//alert(str);
str=id_str;
if (xmlHttp.readyState==4)
{ 
document.getElementById(str).innerHTML=xmlHttp.responseText;
}
else
{
	document.getElementById(str).innerHTML="Processing....";
}
}
function stateChanged1()
{ 
if (xmlHttp.readyState==4)
{ 
document.getElementById("txtHint").innerHTML=xmlHttp.responseText;
}
else
{
	document.getElementById("txtHint").innerHTML="Processing....";
}
}

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;
}