var PopWin = null;
function Popup(URL, WinX, WinY, WinWidth, WinHeight, WinFeatures, WinName)
{	

// onderstaande functies even weggehaald omdat de positionering niet in % moet maar op echte waarde
//	if(WinX.indexOf("%"))
//   	{	
//		ScreenWidth = screen.availWidth;
//    		Percent = parseInt(WinX);
//   		WinX = parseInt(Math.round((ScreenWidth / 100) * Percent));
//        	WinX -= parseInt(WinWidth / 2);
//    	}
   	
//	if(WinY.indexOf("%"))
//    	{	
//		ScreenHeight = screen.availHeight;
//   		Percent = parseInt(WinY);
//    		WinY = parseInt(Math.round((ScreenHeight / 100) * Percent));
//        	WinY -= parseInt(WinHeight / 2);
//   	}

	if(!PopWin	|| PopWin.closed)
	{	
		PopWin = window.open(URL,WinName, "width="+WinWidth+",height="+WinHeight+","+WinFeatures);
	}
	else
	{	
		PopWin.location.href = URL;
	}
	PopWin.moveTo(WinX, WinY);
	PopWin.focus();
}

function showAgent(agent_ID){
  			path = "http://asp.shortsea.nl/search_engine/docs/new_design_test/participants_info/address_info.asp?agent_ID=" + agent_ID + "&language=1";
			serviceWin = open(path,"displayWindow","width=280,height=260,left=350,top=100,status=no,toolbar=no,menubar=no,scrollbars=no");		
		}
