
function showPopup(wUrl,wName,w,h,l,t,sscroll){
settings='width=' + w +',height=' + h +',top=' + t + ',left=' + l +',scrollbars=' + sscroll +',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes';
popupWin=window.open(wUrl,wName,settings);

}

function OpenWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


function toggle(){
  if (document.getElementById){
  target = document.getElementById('hidecolor');
  target1 = document.getElementById('meer');
  target2 = document.getElementById('minder');
  
  if (target.style.display == "block"){ 			
   target.style.display = "none";   
  } 
  else {  				
   target.style.display = "block"; 
  }
  if (target1.style.display == "none"){ 			
   target1.style.display = "block";
   target2.style.display = "none";
  } 
  else {  				
   target1.style.display = "none";
   target2.style.display = "block";
  }
  
  }
}

var downStrokeField;
function autojump(fieldName,nextFieldName,fakeMaxLength)
{
var myForm=document.forms[document.forms.length - 1];
var myField=myForm.elements[fieldName];
myField.nextField=myForm.elements[nextFieldName];

if (myField.maxLength == null)
   myField.maxLength=fakeMaxLength;

myField.onkeydown=autojump_keyDown;
myField.onkeyup=autojump_keyUp;
}

function autojump_keyDown()
{
this.beforeLength=this.value.length;
downStrokeField=this;
}

function autojump_keyUp()
{
if (
   (this == downStrokeField) && 
   (this.value.length > this.beforeLength) && 
   (this.value.length >= this.maxLength)
   )
   this.nextField.focus();
downStrokeField=null;
}

//function to display or hide a given element

function showHideItems(myItem){

var myItem = document.getElementById(myItem);
if (myItem.style.display != "none") {
//items are currently displayed, so hide them
myItem.style.display = "none";
}
else {
//items are currently hidden, so display them
myItem.style.display = "inline";
}
}


