var xmlHttp

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

//============== Flash Project ================

function Get_Port_Folio(id) {
	//document.getElementById("PORTFOLIO_DATA").innerHTML="<img src='images/load.gif'>"
	document.getElementById("PORTFOLIO_DATA_FLASH").innerHTML="<div align='center'><img src='images/load.gif'></div>"
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null){
		alert ("Browser does not support HTTP Request")
		return
	} 

	var url="Get_Prot_Folio_Flash.php"
	url=url+"?id="+id
	url=url+"&ram_id="+Math.random()	
	xmlHttp.onreadystatechange=Get_Prot_Folio_Flash_Change
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)	
}

function Get_Prot_Folio_Flash_Change(){ 

	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete"){ 		
		document.getElementById("PORTFOLIO_DATA_FLASH").innerHTML=xmlHttp.responseText 
	} 
}

//==============Website Development =================
function Get_Port_Folio_Web(id) {
	//document.getElementById("PORTFOLIO_DATA_WEB").innerHTML="<img src='images/load.gif'>"
	document.getElementById("PORTFOLIO_DATA_WEB").innerHTML="<div align='center'><img src='images/load.gif'></div>"
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null){
		alert ("Browser does not support HTTP Request")
		return
	} 

	var url="Get_Port_Folio_Web.php"
	url=url+"?id="+id
	url=url+"&ram_id="+Math.random()	
	xmlHttp.onreadystatechange=Get_Port_Folio_Web_Change
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)	
}

function Get_Port_Folio_Web_Change(){ 

	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete"){ 		
		document.getElementById("PORTFOLIO_DATA_WEB").innerHTML=xmlHttp.responseText 
	} 
}

//==============Graphic Designing =================
function Get_Port_Folio_Graphic(id) {
	//document.getElementById("PORTFOLIO_DATA_WEB").innerHTML="<img src='images/load.gif'>"
	document.getElementById("PORTFOLIO_DATA_GRAPH").innerHTML="<div align='center'><img src='images/load.gif'></div>"
	
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null){
		alert ("Browser does not support HTTP Request")
		return
	} 

	var url="Get_Port_Folio_Graphic.php"
	url=url+"?id="+id
	url=url+"&ram_id="+Math.random()	
	xmlHttp.onreadystatechange=Get_Port_Folio_Graphic_Change
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)	
}

function Get_Port_Folio_Graphic_Change(){ 

	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete"){ 		
		document.getElementById("PORTFOLIO_DATA_GRAPH").innerHTML=xmlHttp.responseText 
	} 
}
//==============Ecommerc  =================
function Get_Port_Folio_Ecom(id) {
	//document.getElementById("PORTFOLIO_DATA_WEB").innerHTML="<img src='images/load.gif'>"
	document.getElementById("PORTFOLIO_DATA_ECOM").innerHTML="<div align='center'><img src='images/load.gif'></div>"
	
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null){
		alert ("Browser does not support HTTP Request")
		return
	} 

	var url="Get_Port_Folio_Ecom.php"
	url=url+"?id="+id
	url=url+"&ram_id="+Math.random()	
	xmlHttp.onreadystatechange=Get_Port_Folio_Ecom_Change
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)	
}


function Get_Port_Folio_Ecom_Change(){ 

	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete"){ 		
		document.getElementById("PORTFOLIO_DATA_ECOM").innerHTML=xmlHttp.responseText 
	} 
}
//==============Application development  =================
function Get_Port_Folio_Appl(id) {
	//document.getElementById("PORTFOLIO_DATA_WEB").innerHTML="<img src='images/load.gif'>"
	document.getElementById("PORTFOLIO_DATA_APPL").innerHTML="<div align='center'><img src='images/load.gif'></div>"
	
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null){
		alert ("Browser does not support HTTP Request")
		return
	} 

	var url="Get_Port_Folio_Appl.php"
	url=url+"?id="+id
	url=url+"&ram_id="+Math.random()	
    xmlHttp.onreadystatechange=Get_Port_Folio_Appl_Change
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)	
}

function Get_Port_Folio_Appl_Change(){ 

	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete"){ 		
		document.getElementById("PORTFOLIO_DATA_APPL").innerHTML=xmlHttp.responseText 
	} 
}

