// Document Created by F.Dirol, http://www.studioturk.com
// Last Modified: 02.02.2009
	function displayPortfolio(lng,mod,lq,prjid,grpid,pid,etype,ptype,cstat,stype,rgn,cty,dst,linkext,listext,k,on,lmt,elmnt){
//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
	if(lng.length==0){ 
document.getElementById(elmnt).innerHTML="Empty query!";
return; }
//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
var httpRequest;
	if(window.XMLHttpRequest){
httpRequest = new XMLHttpRequest();
	if(httpRequest.overrideMimeType){
httpRequest.overrideMimeType('text/xml'); } }
	else if(window.ActiveXObject){
httpRequest = new ActiveXObject("Microsoft.XMLHTTP"); }
//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
	if(httpRequest==null){
alert("Your browser does not support AJAX!");
return; } 
//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
var url='portfolio.php'+'?lng='+lng;
	if(mod!=null){
url=url+'&mod='+mod; }
	if(lq!=null){
url=url+'&lq='+lq; }
	if(prjid!=null){
url=url+'&prjid='+prjid; }
	if(grpid!=null){
url=url+'&grpid='+grpid; }
	if(pid!=null){
url=url+'&pid='+pid; }
	if(etype!=null){
url=url+'&etype='+etype; }
	if(ptype!=null){
url=url+'&ptype='+ptype; }
	if(cstat!=null){
url=url+'&cstat='+cstat; }
	if(stype!=null){
url=url+'&stype='+stype; }
	if(etype!=null){
url=url+'&etype='+etype; }
	if(rgn!=null){
url=url+'&rgn='+rgn; }
	if(cty!=null){
url=url+'&cty='+cty; }
	if(dst!=null){
url=url+'&dst='+dst; }
	if(linkext!=null){
url=url+'&linkext='+linkext; }
	if(listext!=null){
url=url+'&listext='+listext; }
	if(k!=null){
url=url+'&k='+k; }
	if(on!=null){
url=url+'&on='+on; }
	if(lmt!=null){
url=url+'&lmt='+lmt; }
url=url+'&sessid='+Math.random();
httpRequest.onreadystatechange=function(){ 
	switch(httpRequest.readyState){
	case 1:
document.getElementById(elmnt).innerHTML="<p><img src='images/icons/progress.gif'> The request is being processed.</p>"; break; // The request has been set up..
	case 2:
document.getElementById(elmnt).innerHTML="<p><img src='images/icons/progress.gif'> The request is being processed..</p>"; break; // The request has been sent..
	case 3:
document.getElementById(elmnt).innerHTML="<p><img src='images/icons/progress.gif'> The request is being processed...</p>"; break; // The request is in process..
	case 4:
document.getElementById(elmnt).innerHTML=httpRequest.responseText; break;
	default:
document.getElementById(elmnt).innerHTML="<p>The request is failed. Reason: No data available..</p>"; } }
httpRequest.open('get',url,true);
httpRequest.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
httpRequest.send(null); }
