function openWindow(url,width,height){
	nwin = window.open(url,'nwin','width='+width+',height='+height+',resizable=no,status=no,scrollbars=yes');
    if (window.nwin) {
    	window.nwin.focus();
	}
}
function openWindowNoScroll(url,width,height){
	nwin = window.open(url,'nwin','width='+width+',height='+height+',resizable=no,location=no,status=no,scrollbars=no');
    if (window.nwin) {
    	window.nwin.focus();
	}
}
function openWindowNoScroll(url,width,height,name){
	nwin = window.open(url,name,'width='+width+',height='+height+',resizable=no,location=no,status=no,scrollbars=no');
    if (window.nwin) {
    	window.nwin.focus();
	}
}


function setMenuClass(id){
entry=document.getElementById(id);if(entry.className=='mel'){entry.className='mel_omo';}else{entry.className='mel';}}

function setSubMenuClass(id){
entry=document.getElementById(id);if(entry.className=='smel'){entry.className='smel_omo';}else{entry.className='smel';}}

function setSubMenuClassPre(id,theClassPrefix){
entry=document.getElementById(id);if(entry.className==theClassPrefix){entry.className=theClassPrefix+'_omo';}else{entry.className=theClassPrefix;}}

function setMenuClass0(id){
entry=document.getElementById(id);if(entry.className=='mel'){entry.className='mel_omo';}else{entry.className='mel';}}

function setMenuClass1(id){
entry=document.getElementById(id);if(entry.className=='smel'){entry.className='smel_omo';}else{entry.className='smel';}}


function changeVisibility(id){
identity=document.getElementById(id);	if(identity.style.display=='none'){identity.style.display='';}else  {identity.style.display='none';}}


function checkNumber(id){
alert(id);
elem=document.getElementById(id);	
if(!(isInteger(elem.value)) )
{
    alert('Numerisches Eingabefeld! (0-9)');
    elem.value='';
}
}
function isInteger(value)
   {
  	    var strValidChars = "0123456789";
  	    var strChar;
  	    var blnResult = true;
  	    for (i = 0; i < value.length && blnResult == true; i++)
       {
           strChar = value.charAt(i);
           if(strValidChars.indexOf(strChar) == -1)
           {
               blnResult = false;
           }
       }
	return blnResult;
   }


