//	Create a global variable for easy browser testing
var isNavigator = (document.all) ? 0 : 1;

/*
**	pageTop()
**	Stuff to generally format the page
*/
function pageTop() {
/*	document.write("<table width=575px align=left><tr><td>");	*/
	document.write("<table align=left><colgroup><col width=575px><col width=210px></colgroup><tr><td class=\"main\">");
}

function pageTop1() {
	document.write("<div align=\"center\" style=\"width: 575px;text-align: left\">");
}

/*
**	pageBottom()
**	Stuff to generally format the page
*/
function pageBottom(sidebarurl) {
	if ( sidebarurl != null ) {
		document.write("</td><td class=\"sidebar\"><object type=\"text/html\" data=" + sidebarurl + " width=210px height=1000px border=0 scrolling=no></td></tr></table>");
	}
	else {
		document.write("</td><td valign=top>&nbsp;</td></tr></table>");
	}
}

function pageBottom1() {
	document.write("</div>");
}

/*
**	lastChange()
**	Generic function to display the timestamp of the documsnt's last
**	change.
**
**	Parameters:	none
**	Requires:	docDate CSS font class
*/
function lastChange() {
	mod = document.lastModified;
	document.write("<hr noshade size=1><table cellspacing=0 cellpadding=0 border=0 width=100%><tr>");
	document.write("<td align=left valign=top nowrap><font class=docDate>Letzte &Auml;nderung: "+mod+"</p></td>");
	document.write("<td align=right valign=top nowrap><font class=docDate><a class=docDate href=\"http://www.utc-flugschule.de\" target=_top>www.utc-flugschule.de</a></p></td>");
	document.write("</tr></table>");
}

function lastChangeE() {
	mod = document.lastModified;
	document.write("<hr noshade size=1><table cellspacing=0 cellpadding=0 border=0 width=100%><tr>");
	document.write("<td align=left valign=top nowrap><font class=docDate>Last change: "+mod+"</p></td>");
	document.write("<td align=right valign=top nowrap><font class=docDate><a href=\"http://www.suessmaier.de\" target=_top>www.suessmaier.de</a></p></td>");
	document.write("</tr></table>");
}

function openSupportWindow(url, t, wid, hgt) {
	var left = ((screen.width) ? (screen.width-wid)/2 : 0);
	var top = ((screen.height) ? (screen.height-hgt)/2 : 0);

	var w = window.open ( url, t,
											"status=no,toolbar=no,scrollbar=no,resizable=no,"+
											"width="+wid+",height="+hgt+",top="+top+",left="+left );
	w.focus();
}
