
if(!document.all && !document.documentElement && navigator.userAgent.toLowerCase().indexOf("opera")<0 && navigator.userAgent.toLowerCase().indexOf("mac")<0)
    document.write('<link rel="stylesheet" href="/all/includes/style_bigfonts.css" type="text/css">');
if(document.all || document.documentElement) {
  document.write('<style type="text/css">');
  document.write('  .formwidth_normal  {border: 1px #FFFFFF solid; padding: 1px}');
  document.write('  .formwidth_small   {border: 1px #FFFFFF solid; padding: 1px}');
  document.write('  .formwidth_mini    {border: 1px #FFFFFF solid; padding: 1px}');
  if(!document.all)
    document.write('  .formcheck       {border: 1px #FFFFFF solid; padding: 1px; background: #D5E4F3}');
  document.write('</style>');
}

function popup(file) {
	if(document.all & navigator.userAgent.toLowerCase().indexOf('mac')>0)
	  intHeight+=40;

	strParams='width=540,height=480,toolbar=no,location=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,screenX=20,screenY=0,left=20,top=10';
  poped=window.open(file,'popup',strParams);

  poped.focus();
  return false;
}

function ZWO_popup(href) {
	useragent=navigator.userAgent.toLowerCase();

	intWidth=560;
	intHeight= screen && screen.height >= 600 ? 0.80 * screen.height: 540;
	if(useragent.indexOf('msie')>0 & useragent.indexOf('mac')>0) {
		intHeight-=17;
		intWidth-=17;
	}

	poped=window.open(href,'extra','width='+intWidth+',height='+intHeight+',left=20,top=10,status=yes,scrollbars=yes');
	poped.focus();

	return false;
}
// Script by Thomas Stich http://www.stichpunkt.de/beitrag/popup.html <a href="html-or.jpg" onclick="return popup(this,123,456)" title="..." oder <a href="html-or.jpg" onclick="return popup(this)" title="..."
var pop = null;

function popdown() {
	if (pop && !pop.closed) pop.close();
}

function popupp(obj,w,h) {
	var url = (obj.getAttribute) ? obj.getAttribute('href') : obj.href;
	if (!url) return true;
	w = (w) ? w += 20 : 560;  // default size
	h = (h) ? h += 25 : 540;
	var args = 'width='+w+',height='+h+',resizable,left=20,top=10,status=yes,scrollbars=yes';
	popdown();
	pop = window.open(url,'',args);
	return (pop) ? false : true;
}
window.onload = function() {
	// check to see that the browser supports the getElementsByTagName method
	// if not, exit the loop
	if (!document.getElementsByTagName) {
		return false;
	}
	// create an array of objects of each link in the document
	var popuplinks = document.getElementsByTagName("a");
	// loop through each of these links (anchor tags)
	for (var i=0; i < popuplinks.length; i++) {
		// if the link has a class of "popup"...
		if (popuplinks[i].getAttribute("class") == "popuplink") {
			// add an onclick event on the fly to pass the href attribute
			// of the link to our second function, openPopUp
			popuplinks[i].onclick = function() {
			openPopUp(this.getAttribute("href"));
			return false;
			}
		}
	}
}

function openPopUp(linkURL) {
window.open(linkURL,'popup','width=700,height=500, scrollbars=<')
}
