//----------------------------------------------------------------------
// CMS V.5.0.4 / 06-2011
// designed and created by modern times new media
// http://www.moderntimes.ch
//----------------------------------------------------------------------

function details(theURL,winName,features) { // 'toolbar=NO,location=NO,status=NO,menubar=NO,scrollbars=YES,resizable=YES,width=700,height=520'
 msgWindow=window.open(theURL,winName,features);
 msgWindow.focus();
}

function pics(url) {
 fenster=window.open(url, "Bildergalerie", "toolbar=NO,location=YES,status=NO,menubar=NO,scrollbars=YES,resizable=YES,width=710,height=590");
 fenster.focus();
// return false;
}

function Drucken(url) {
 fenster=window.open(url, "print", "toolbar=no,location=NO,status=NO,menubar=yes,scrollbars=YES,resizable=YES,width=780,height=600");
 fenster.focus();
}

function langMenu(){
 if (document.getElementById('langbg').style.display == 'none') {
  document.getElementById('langbg').style.display = 'block';
 } else {
  document.getElementById('langbg').style.display = 'none';
 }
}

function SetFocus() {
  if (document.forms.length > 0) {
    var field = document.forms[0];
    for (i=0; i<field.length; i++) {
      if ( (field.elements[i].type != "image") &&
           (field.elements[i].type != "hidden") &&
           (field.elements[i].type != "reset") &&
           (field.elements[i].type != "submit") ) {

        document.forms[0].elements[i].focus();

        if ( (field.elements[i].type == "text") ||
             (field.elements[i].type == "password") )
          document.forms[0].elements[i].select();

        break;
      }
    }
  }
}


