	
	function NewWindow(url,name)
	{
		width = 820;
		height = 700;
		wleft = (screen.availWidth / 2) - (width / 2);
		wtop = (screen.availHeight / 3) - (height / 3);
		MyWindow = window.open(url, name, "width="+width+",height="+height+",left="+wleft+",top="+wtop+",scrollbars=yes");
		MyWindow.focus();
	}
	
	function goback(site)
	{
    	document.location.replace(site);
  	}
 		
	function radioWert(Obj)
	{
   		for (var i=0; i<Obj.length; i++)
			if (Obj[i].checked) return Obj[i].value;
 	}
	
	function isnumber(id)
	{
		if(id.value.match(/[^0-9]/))
			id.value = id.value.replace(/[^0-9]/,"");
	}
	
	function isnumberwk(id)
	{
		if(id.value.match(/[^0-9]/))
			id.value = id.value.replace(/[^0-9\.]/,"");
	}
	
	function isnumberwd(id)
	{
		if(id.value.match(/[^0-9]/))
			id.value = id.value.replace(/[^0-9\,]/,"");
	}
	
	function trimval(id, length)
	{
		if(id.value.length > length)
			id.value  = id.value.substr(0, length);
	}