function test(){
get$('test').style.display="";
get$('post').style.display="";

}

function test1(){
get$('reply1').style.display="";
}

function show_content(str,id1)
{ 

forum_remove();
var xmlHttp;
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request");
 return;
 } 
 get$('content').innerHTML = "";
 //get$('loading').innerHTML = '<img src="images/loadingAnimation.gif">';
 //get$'loading').innerHTML = 'Requesting........';
 get$('loading').innerHTML = '<br><br><b>Loading....</b><br><img src="images/regload.gif">';
var url=str;
url=url+"?q="+Math.random();
xmlHttp.onreadystatechange=function() {
 if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
 //var res = xmlHttp.response.text;
 //eval(xmlHttp.responseText);
 // document.write(res);
 document.getElementById(id1).innerHTML=xmlHttp.responseText ;
 get$('loading').innerHTML = "";
 } 
 }
 xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}

/*function stateChanged() 
{ 
 if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
 //var res = xmlHttp.response.text;
 //eval(xmlHttp.responseText);
 // document.write(res);
 document.getElementById("content").innerHTML=xmlHttp.responseText ;
 } 
}
*/



function show_topic(str,id1)
{ 

var xmlHttp;
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request");
 return;
 } 
 get$('content').innerHTML = "";
 //get$('loading').innerHTML = '<img src="images/loadingAnimation.gif">';
 //get$('loading').innerHTML = 'Requesting........';
 get$('loading').innerHTML = '<br><br><b>Loading....</b><br><img src="images/regload.gif">';
var url=str;
url=url+"&q="+Math.random();
xmlHttp.onreadystatechange=function() {
 if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
 //var res = xmlHttp.response.text;
 //eval(xmlHttp.responseText);
 // document.write(res);
 document.getElementById(id1).innerHTML=xmlHttp.responseText ;
 get$('loading').innerHTML = "";
 } 
 }
 xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}

/*function stateChanged() 
{ 
 if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
 //var res = xmlHttp.response.text;
 //eval(xmlHttp.responseText);
 // document.write(res);
 document.getElementById("content").innerHTML=xmlHttp.responseText ;
 } 
}
*/


function forum_remove(){

get$('test').style.display="none";
get$('post').style.display="none";
get$('reply1').style.display="none";

}



function show(str,id1)
{ 

//forum_remove();
var xmlHttp;
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request");
 return;
 } 
var url=str;
url=url+"?q="+Math.random();
xmlHttp.onreadystatechange=function() {
 if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
 document.getElementById(id1).innerHTML=xmlHttp.responseText ;
 } 
 }
 xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}

