<!--
var d = document;
function noGrid(item){ 	// stop blur grid effect in MSIE
	if(navigator.appVersion.toLowerCase().indexOf("msie")!= -1)item.blur()
}
function setCanvas(){
	if(window.innerHeight){
		canHeight = window.innerHeight;
	}else if(d.body){
		canHeight = d.body.offsetHeight;
	}
	d.write('<table class="canvas" cellpadding="0" cellspacing="0" height='+canHeight+'>');
	
}
function countMsg(form,path,maxLength) {
	txtLen = 0+d[form][path].value.length;
	if(d[form].counter!= null)d[form].counter.value = txtLen;
	if (txtLen >= maxLength) {
		alert("Es dürfen nicht mehr als " + maxLength + " Zeichen eingegeben werden!");
		d[form][path].value = d[form][path].value.substring(0,maxLength);
		txtLen = 0;
	}
}
function sendForm(){
	if(d.form.message.value != "" && d.form.name.value != "")d.form.submit();
}
function sendAdminForm(cmd,item){
	d.form1.cmd.value = cmd;
	if(cmd == "delete" && d.form1.linkID.value != ""){
	var conf = confirm("Eintrag wirklich entfernen?");
		if(conf != false){
			d.form1.submit();
		}
	}
}
function winWidth_res(){
	if (window.innerWidth) return window.innerWidth;
	else if (d.body && d.body.offsetWidth) return d.body.offsetWidth;
	else return 0;
}

function winHeight_res(){
	if (window.innerHeight) return window.innerHeight;
	else if (d.body && document.body.offsetHeight) return d.body.offsetHeight;
	else return 0;
}

function _resizeIt(){
	if (width_res != winWidth_res() || height_res != winHeight_res())
	window.history.go(0);
}
if(!window.width_res && window.innerWidth)  {
   window.onresize = _resizeIt;
   width_res = winWidth_res();
   height_res = winHeight_res();
  }
//-->

