function infoWin(url,name,b,h,l,t) 	{
	fenster = window.open(url,name,"menubar=no,toolbar=no,scrollbars=yes,width="+b+",height="+h+",left="+l+", top="+t);
	var x = b;
	var y = h;
	var nwl = (screen.width-x)/2;
	var nwh = (screen.height-y)/2;
	fenster.resizeTo(x,y);
	fenster.moveTo(nwl,nwh);
}

function setClass(adiv,bdiv,on) {
	if (on) {
  		document.getElementById(adiv).className = "div1sel";
  		document.getElementById(bdiv).className = "div2sel";
	}
	else {
  		document.getElementById(adiv).className = "div1unsel";
  		document.getElementById(bdiv).className = "div2unsel";
	}
}
function ismaxlength(obj){
	var mlength=obj.getAttribute? parseInt(obj.getAttribute("maxlength")) : ""
	if (obj.getAttribute && obj.value.length>mlength)
	obj.value=obj.value.substring(0,mlength)
}