function displayhidebuyerdetails()
{
if(document.getElementById('buyerdetailstd').offsetHeight>0)
	document.getElementById('buyerdetailstd').style.display="none";
else
	document.getElementById('buyerdetailstd').style.display="";
}
function GetXmlHttpObject()
{
		var xmlHttp;
		try
		{
			// Firefox, Opera 8.0+, Safari
			xmlHttp=new XMLHttpRequest();
		}
		catch (e)
		{
				// Internet Explorer
				try
				{
					xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
				}
				catch (e)
				{
						try
						{
							xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
						}
						catch (e)
						{
							
						}
				}
		}
		return xmlHttp;
}

function projectbidviewmode(id)
{
			xmlHttp2=GetXmlHttpObject();
			if (xmlHttp2==null)
			{
				alert ("Browser does not support HTTP Request");
				return;
			}	
			xmlHttp2.open("GET","../project/profileprojectview.php?id="+id,true);
			
			xmlHttp2.onreadystatechange=function()
			{ 
			  if(xmlHttp2.readyState==4)
			  {	
				//alert(xmlHttp2.responseText);					
				document.getElementById('hideview').style.display='none';
			//	document.getElementById('frmprojectsearch').style.display='none';
				document.getElementById("projectview").style.display='inline';
				document.getElementById('projectview').innerHTML=xmlHttp2.responseText;
				collapse2=new animatedcollapse("cat", 800,false,"block");
			  }
			}	
			xmlHttp2.send(null);
			//return false;
}

function projectviewback()
{
			document.getElementById('hideview').style.display='inline';
			document.getElementById("projectview").style.display='none';			
}
function providerprofile(userid)
{
	window.open("./index.php?option=com_comprofiler&userId="+userid);
}