var xmlhttp = false;
 
if (!xmlhttp && typeof XMLHttpRequest!='undefined')  {
	xmlhttp = new XMLHttpRequest();
}

function showPortfolio(proid) {
	// newajax
	xmlhttp=GetXmlHttpObject();
	//alert(proid);
	if (xmlhttp==null) {
		alert ("Browser does not support HTTP Request");
		return;
	} 

	var url = './portfolio_data.php?pid=' + proid;
	xmlhttp.open("GET", url, true);

	 
	xmlhttp.onreadystatechange=function() {
		if (xmlhttp.readyState==4 || xmlhttp.readyState=="complete") {
			 
			document.getElementById("profolioContent").innerHTML = xmlhttp.responseText;
			
		}
	}
  
	xmlhttp.send(null);
	return false;
}

function GetXmlHttpObject() {
	 
	var objXMLHttp=null;
	if (window.XMLHttpRequest) {
		objXMLHttp=new XMLHttpRequest();
	}
	else if (window.ActiveXObject) {
		objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP");
	}
	return objXMLHttp;
}