//	frame.js
//	copyright: S. Birkholz, Alle Rechte vorbehalten
// 	Version: 20.11.2005
//	


//	CONSTANTS
var SetTitle=false;
var StyleSheet="";

//===        InitFrame        ===

function InitFrame(){

// set to top
if (self.location.href != top.location.href ) 
	{top.location.replace(self.location.href);};

// params

if(top.name=="loaddoc" && self.location.search!=""){

	var param=self.location.search;
	param=param.substr(1, param.length-1);
	param=decodeURIComponent(param);

// eval params


var arglist=new Array();
arglist=param.split("&");
	for(i=0;i<arglist.length;++i){
		var arg=new Array;
                arg=arglist[i].split("=");
                //
                
                if(arg[0]=="doc")
                {
                frames["DocFrm"].location.replace(arg[1]);
             	top.name="";
	           
                }
                       
	};

}


return;

};//


/////////	B A S I C S	/////////
//	


//===        PopUp        ===
function PopUp(url, h, w){
	window.open(url,null, "height="+h+",width="+w+",scrollbars=yes , status=yes,toolbar=no,menubar=no,location=no, status=no, resizable=yes");
};//
//===        PopUpFix        ===
function ScrollWin(url, h, w){
        window.open(url,null, "height="+h+",width="+w+",scrollbars=no , status=yes,toolbar=no,menubar=no,location=no, status=no, resizable=no");
};//
//===        MsgWin        ===
function MsgWin(txt, h, w){
        var win=window.open("",null, "height="+h+",width="+w+",status=yes,toolbar=no,menubar=no,location=no, status=no");
        var doc=win.document;
        doc.open();
        doc.writeln(txt);
        doc.close();
};//
function PrintDoc(){
    var win=top.frames["DocFrm"];
    win.focus();
    win.print();
};        


