function getWindowWidth(win) { 
	if (win == undefined) win = window; 
	if (win.innerWidth) { 
		return win.innerWidth; 
	} 
	else { 
		if (win.document.documentElement && 
			win.document.documentElement.clientWidth) { 
			return win.document.documentElement.clientWidth; 
		} 
		return win.document.body.offsetWidth; 
	} 
} 

function getWindowHeight(win) { 
	if (win == undefined) win = window; 
	if (win.innerHeight) { 
		return win.innerHeight; 
	} 
	else { 
		if (win.document.documentElement 
			&& win.document.documentElement.clientHeight) { 
			return win.document.documentElement.clientHeight; 
		} 
		return win.document.body.offsetHeight; 
	} 
}

function hoehe(){
   if ((getWindowHeight()-220)>document.getElementById('main').offsetHeight){
     hy=getWindowHeight()-220;
     document.getElementById('iframe').style.height=hy+'px';
   } else {
     document.getElementById('iframe').style.height=document.getElementById('main').offsetHeight+'px';
   }
     document.getElementById('iframe').style.height=document.getElementById('main').offsetHeight+'px';

}

function init()

{
   var a=document.getElementsByTagName('a');
   for (var i=0;i<a.length;i++) {
      a[i].onmousedown = function()
      {
         this.onfocus = function()
         {
            this.blur();
         }
      }
      a[i].onmouseup = function()
      {
         this.onfocus = function(){}
      }
      a[i].onmouseout = a[i].onmouseup;
   }
      var input=document.getElementsByName('absenden');
   for (var i=0;i<input.length;i++) {
      input[i].onmousedown = function()
      {
         this.onfocus = function()
         {
            this.blur();
         }
      }
      input[i].onmouseup = function()
      {
         this.onfocus = function(){}
      }
      input[i].onmouseout = input[i].onmouseup;
   }
      var input=document.getElementsByName('whatever');
   for (var i=0;i<input.length;i++) {
      input[i].onmousedown = function()
      {
         this.onfocus = function()
         {
            this.blur();
         }
      }
      input[i].onmouseup = function()
      {
         this.onfocus = function(){}
      }
      input[i].onmouseout = input[i].onmouseup;
   }
}



if ( (window.onload === undefined) || (window.onload === null) ) {
   window.onload = window.init;
}
else {
   window.myLoad = window.onload;
   window.onload = function()
   {
      window.myLoad();
      window.init();
   }
}






function getWindowWidth(win) { 
	if (win == undefined) win = window; 
	if (win.innerWidth) { 
		return win.innerWidth; 
	} 
	else { 
		if (win.document.documentElement && 
			win.document.documentElement.clientWidth) { 
			return win.document.documentElement.clientWidth; 
		} 
		return win.document.body.offsetWidth; 
	} 
} 

function getWindowHeight(win) { 
	if (win == undefined) win = window; 
	if (win.innerHeight) { 
		return win.innerHeight; 
	} 
	else { 
		if (win.document.documentElement 
			&& win.document.documentElement.clientHeight) { 
			return win.document.documentElement.clientHeight; 
		} 
		return win.document.body.offsetHeight; 
	} 
}

function hoehe(){
   if ((getWindowHeight()-220)>document.getElementById('main').offsetHeight){
     hy=getWindowHeight()-220;
     document.getElementById('iframe').style.height=hy+'px';
   } else {
     document.getElementById('iframe').style.height=document.getElementById('main').offsetHeight+'px';
   }
     document.getElementById('iframe').style.height=document.getElementById('main').offsetHeight+'px';

}

function init()

{
   var a=document.getElementsByTagName('a');
   for (var i=0;i<a.length;i++) {
      a[i].onmousedown = function()
      {
         this.onfocus = function()
         {
            this.blur();
         }
      }
      a[i].onmouseup = function()
      {
         this.onfocus = function(){}
      }
      a[i].onmouseout = a[i].onmouseup;
   }
      var input=document.getElementsByName('absenden');
   for (var i=0;i<input.length;i++) {
      input[i].onmousedown = function()
      {
         this.onfocus = function()
         {
            this.blur();
         }
      }
      input[i].onmouseup = function()
      {
         this.onfocus = function(){}
      }
      input[i].onmouseout = input[i].onmouseup;
   }
      var input=document.getElementsByName('whatever');
   for (var i=0;i<input.length;i++) {
      input[i].onmousedown = function()
      {
         this.onfocus = function()
         {
            this.blur();
         }
      }
      input[i].onmouseup = function()
      {
         this.onfocus = function(){}
      }
      input[i].onmouseout = input[i].onmouseup;
   }
}



if ( (window.onload === undefined) || (window.onload === null) ) {
   window.onload = window.init;
}
else {
   window.myLoad = window.onload;
   window.onload = function()
   {
      window.myLoad();
      window.init();
   }
}






