
function checkFrames(curLinkHeader,curlinkNavi) {

if ( !parent.frame_header ) {
	location.href = "/index.htm?" + location.pathname + location.search;
} else {
	var success = parent.frame_header.setCurrentLink(curLinkHeader,'')
	//if (!success) alert(parent.frames.frame_header.document.readyState);
}
}

function openFenster() {

F1 = window.open("http://speedmap.leverkusen.de/start.html","Fenster1","width=780,height=580,screenX=0,screenY=0,hotkeys=no,locationbar=no,menubar=yes,resizable=no,status=yes");
F1.focus();

}

function openTwoFrames(fileName1,fileName2) {

    top.frame_navi.location.href = fileName1;
    top.frame_main.location.href = fileName2;
	
}

function popup(url,width,height) {

	var left   = (screen.width  - width)/2;
	var top    = (screen.height - height)/2;
	height = height + 20;
	width = width + 20;
	var params = 'width='+width+', height='+height;
	params += ', top='+top+', left='+left;
	params += ', directories=no';
	params += ', location=no';
	params += ', menubar=no';
	params += ', resizable=no';
	params += ', scrollbars=yes';
	params += ', status=no';
	params += ', toolbar=no';
	newwin = window.open(url,'popup', params);
	if (window.focus) {newwin.focus()}
	newwin.addEventListener('click',function (e) {
  		newwin.close();
	},true);
	return false;
}



  

