/*********************************************
* (c) Point X nv September 2002
* http://www.pointx.be
* info@pointx.be
**********************************************
CLIENTSIDE FUNCTIES
*********************************************/

//------------------------------------------------------------------------------
var SearchWin=0;
function submitsearch(strRelative,strLang) { // Submit van de Search (in banner opgeroepen door homepage of detailpage).
	if (SearchWin) {
		if (!SearchWin.closed) SearchWin.close();
	}
	SearchWin = window.open(strRelative + '_asp/search/search.asp?lang=' + strLang + '&target=' + document.getElementById('Query').value, 'bekaertsearch', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width=630,height=450,left=20, top=20,screenX=20,screenY=20');
}
//------------------------------------------------------------------------------

//------------------------------------------------------------------------------
function showinopener(url) { // Opent URL in opener EN sluit de oproepende window.
		opener.location.href = url;
		self.close();
}
//------------------------------------------------------------------------------



//------------------------------------------------------------------------------
var popUpWin=0;
function popupwindow(URLStr, left, top, width, height) // Oproepen van een POPUP window.
{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}
//------------------------------------------------------------------------------


//------------------------------------------------------------------------------
function spotlightwindow(url,doel)
{
	if (doel == "_blank") {
		window.open(url,'spotlightwindow','toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=yes' );
	} else {
		window.location.href= url;
	}
}
//------------------------------------------------------------------------------




//------------------------------------------------------------------------------
var popUpWinClose=0;
function popupwindowclose(URLStr, left, top, width, height) // Oproepen van een POPUP window EN de oproepende window sluiten.
{
  if(popUpWinClose)
  {
    if(!popUpWinClose.closed) popUpWinClose.close();
  }
  popUpWinClose = open(URLStr, 'popUpWinClose', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
  self.close();
}
//------------------------------------------------------------------------------


//------------------------------------------------------------------------------
var popUpWinClose2=0;
function popupwindowclose2(URLStr, left, top, width, height) // Oproepen van een POPUP window EN de oproepende window sluiten.
{
  if(popUpWinClose2)
  {
    if(!popUpWinClose2.closed) popUpWinClose2.close();
  }
  popUpWinClose2 = open(URLStr, 'popUpWinClose2', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
  self.close();
}
//------------------------------------------------------------------------------

//------------------------------------------------------------------------------
var popUpNode=0;
function popupnodes(URLStr, left, top, width, height) // Oproepen van een POPUP window voor beheer van NODES.
{
  if(popUpNode)
  {
    if(!popUpNode.closed) popUpNode.close();
  }
  popUpNode = open(URLStr, 'popUpNode', 'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}
//------------------------------------------------------------------------------

//------------------------------------------------------------------------------
var popUpPage=0;
function popuppages(URLStr, left, top, width, height) // Oproepen van een POPUP window voor beheer van PAGES.
{
  if(popUpPage)
  {
    if(!popUpPage.closed) popUpPage.close();
  }
  popUpPage = open(URLStr, 'popUpPage', 'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}
//------------------------------------------------------------------------------

//------------------------------------------------------------------------------
var popUpOther=0;
function popupother(URLStr, left, top, width, height) // Oproepen van een POPUP window voor beheer van OTHER LINKS.
{
  if(popUpOther)
  {
    if(!popUpOther.closed) popUpOther.close();
  }
  popUpOther = open(URLStr, 'popUpOther', 'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}
//------------------------------------------------------------------------------




