<!--
// @@@
// @@ Author: Bas van Dorst
// @@ Date: 2007-02-27
// @@ Last change: 2007-02-27
// @@ Version: 1
// @@ Revision: 0
// @@ Copyright: Ecommany B.V.
// @@ Description: JS: check voor frames
// @@$

function testFrame() {
	sUrl=document.location.pathname;
	if (document.location.search!='') sUrl+= document.location.search;
	if (document.location.hash!='') sUrl+= document.location.hash;
	nPos = sUrl.indexOf('?');
	if (nPos!=-1) sUrl = sUrl.substr(0,nPos)+'&'+sUrl.substr(nPos+1);
	if (!(parent && parent.header && parent.pagina)) document.location.replace('/index.php?pagina='+sUrl);
}

addLoadEvent(testFrame);
//-->