// JavaScript Document
function callme(one,s1,s2,s3,s4)
{
	for(i=1;i<=4;i++)
	{
		if(one==i)
		{
		document.getElementById(one).style.color="#000000";
		document.getElementById(one).style.textDecoration="none";
		}
		else
		{
		document.getElementById(one).style.color="#362DBE";
		document.getElementById(one).style.textDecoration="underline";
		}
	}
	change(s1,s2,s3,s4);
}
function change(str1,str2,str3,str4)
{
	//alert(str);
	show_content(str1,str2,str3,str4);
	//exit;

}
function show_content(val,proid,so,ord)
{
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
	alert ("Browser does not support HTTP Request")
	return
	} 
	if(val=='show')
	
	var url="http://www.bfreelancer.com/projects/show_project_detail.php?iso="+val+"&proid="+proid+"&so="+so+"&ord="+ord;
	
	if(val=='hide')
	
	var url="http://www.bfreelancer.com/projects/hide_project_detail.php?iso="+val+"&proid="+proid+"&so="+so+"&ord="+ord;
	
	
	
	
	xmlHttp.onreadystatechange=stateChanged
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
	//xmlHttp.send(null)
	//send_css(value);
}
function stateChanged() 
{ 
    active="container"
	if (xmlHttp.readyState==1 || xmlHttp.readyState=="loading")
	{ 
		//document.getElementById(active).innerHTML="Processing...."
	} 
	
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById(active).innerHTML=xmlHttp.responseText
	} 
} 


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