﻿
/* Iframe-Check
****************
Dieses Javascript checkt, dass wenn die Page im Iframe-Mode
gerendert wird, auch wirklich vom dem Partner im Iframe aufgerufen wird.
Wenn nicht, dann wird die gleich Page nochmals per Javascript aufgerufen,
aber nicht im Iframe-Mode.
*/

try
{
	if (!parent ||
		!parent.window.frames ||
		 parent.window.frames.length < 1) {
		 
		//search an remove the ihnav-parameter
		var queryString = window.location.search.replace(/ihnav=n&?/i, "");
		//search and remove the iniframe-parameter
		queryString = queryString.replace(/iniframe=1&?/i, "");

		//create the new url to load
		currentUrl = window.location.href.substring(0, window.location.href.indexOf("?"));

		//load page without iframe-mode
		/*
		if (queryString == "?")
			window.location.href = currentUrl;
		else
			window.location.href = currentUrl + queryString;				
		*/
	}
}
catch(ex){}




