
var x,y;
if (self.innerHeight) // all except Explorer
{
	x = self.innerWidth;
	y = self.innerHeight;
}
else if (document.documentElement && document.documentElement.clientHeight)
	// Explorer 6 Strict Mode
{
	x = document.documentElement.clientWidth;
	y = document.documentElement.clientHeight;
}
else if (document.body) // other Explorers
{
	x = document.body.clientWidth;
	y = document.body.clientHeight;
}

function printpixel (h) {
	var conth = h - 118;
	if(document.all){conth=h-130;}
	document.write ("<img src='images/blank.gif' alt='' width='1' height='" + conth + "'>");
}


function getparams(address,paramname)
{
	var output = false;
	var tt=address.search(/\?/);
	if(tt>-1)
	{
		var addr = address.split("?");
		if(addr.length>0)
		{
			addrValues=addr[1].split("&");
			for (var i = 0; i < addrValues.length; i++)
			{
				paramValue=addrValues[i].split("=");
				if(paramValue.length>0)
				{
					if(paramValue[0]==paramname)
					{
						output=paramValue[1];
					}
				}
			}
		}
	}
	return output;
}

function isparamset(address){
	var output = false;
	var tt=address.search(/\?/);
	if(tt>-1)
	{
		output=true;
	}
	return output;
}

function isindex(address){
	var output = false;
	var tt=address.search(/index.php/);
	if(tt>-1)
	{
		output=true;
	}
	return output;
}

function create_pdf(){
	var theurl;
	theurl = self.location.href;
	thehost = self.location.host;
	thehostnc = self.location.host + "/nc";
	
	if(!isindex(theurl))
	{
		theurl=theurl.replace(thehost,thehostnc);
	}
	
	if(isparamset(theurl))
	{
		theurl=theurl + "&type=123";
	}else
	{
		theurl=theurl + "?type=123";
	}
	
	//alert(theurl); //Debug-Augabe
	window.open(theurl, "DataPublish", "width=800,height=600,left=50,top=50,menubar=no,toolbar=no,dependant=yes,status=no");
}

function ontop(){
	var theurl;
	theurl = self.location.href;

	//theurl = theurl + "#top";
self.location.href=theurl;
	//window.open(theurl, "DataPublish", "width=800,height=600,left=50,top=50,menubar=no,toolbar=no,dependant=yes,status=no");
}


function ow(pic,w,h)
{
   window.open("/getpic.php?pic="+pic,"Screenshot","width="+w+",height="+h);

}

function Go (select) {
  var wert = select.options[select.options.selectedIndex].value;
  if (wert == "leer") {
    select.form.reset();
    return;
  } else {
if (wert == "ende") {
      top.location.href = parent.frames[1].location.href;
    } else {
	  top.location.href = wert;
      select.form.reset();
    }
  }
}
