// JavaScript Document
var xmlHttp;
var parent_container;
var tag_change;
var type_id;
// project type chang status

function Aj_Get_Category(value,url)
{
	xmlHttp=GetXmlHttpObject();
	if (xmlHttp==null)
  	{
  		alert ("Your browser does not support AJAX!");
  		return;
  	} 
	var params='group=' + value;
	xmlHttp.open("POST",url,true);
	xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");
	xmlHttp.setRequestHeader("Content-length", params.length);
	xmlHttp.onreadystatechange=LoadChanged;
	xmlHttp.send(params);	

}
function LoadChanged() 
{ 
	
	if (xmlHttp.readyState==4 && xmlHttp.status == 200)
	{ 
		document.getElementById('category_id').innerHTML=xmlHttp.responseText;
		f=false;
	}
}
/**************************************/



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;
}

f=false;
function show(id,para1,para2)
{
	divParent=document.getElementById(id);
	
	if(f==false)
	{
			
		divParent.style.visibility='visible';
		divParent.style.display='inline';
		f=true
	}
	else
	{
		divParent.style.visibility='hidden';
		divParent.style.display='none';
		f=false;
	}
}

function Close(id)
{
	divParent=document.getElementById(id);
	divParent.style.visibility='hidden';
	divParent.style.display='none';
	f=false;
}

