/*
    ** external JavaScript-functions **
    by Axel Hahn * http://www.axel-hahn.de/

    Feel free to use and modify this code
    for your own page.


	Wenn eine Seite geladen wird, die in einem IFrame dargestellt
	werden soll, dann die uebergeordnete Seite mit dem IFrame
	laden und die aufgerufene Seite in den IFrame legen.
	Erfordert JS und Cookies
*/

	function load2Iframe(){
		var params=window.location.search;
		var sCookiename="iframepage"; // Name des Cookies, wo die Seite zwischengelagert werden soll
		var sIframe="myiframe"; // ID des IFrames in der index.html
		
		params="&" + params.substr(1,params.length);
		var data=params.split("&");
		for (i=1; i<data.length;i++) {
			var my_par=data[i].split("=");
			if (my_par[0]=="load")
			{
				Set_Cookie(sCookiename, my_par[1]);
				window.location.href=location.pathname;
				return false;
			}
		}
		sPage=Get_Cookie(sCookiename);
		if (sPage) {
			document.getElementById("myiframe").src=sPage;
			Delete_Cookie(sCookiename);
		}
	}


// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// EOF * info@Axel-Hahn.de
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
