var menuids=new Array("verticalmenu") //Enter id(s) of UL menus, separated by commas
var submenuoffset=-2 //Offset of submenus from main menu. Default is -2 pixels.

function createcssmenu(){
for (var i=0; i<menuids.length; i++){
  var ultags=document.getElementById(menuids[i]).getElementsByTagName("ul")
    for (var t=0; t<ultags.length; t++){
    var spanref=document.createElement("span")
                spanref.className="arrowdiv"
                spanref.innerHTML="&nbsp;&nbsp;"
                ultags[t].parentNode.getElementsByTagName("a")[0].appendChild(spanref)
    ultags[t].parentNode.onmouseover=function(){
    this.getElementsByTagName("ul")[0].style.left=this.parentNode.offsetWidth+submenuoffset+"px"
    this.getElementsByTagName("ul")[0].style.display="block"
    }
    ultags[t].parentNode.onmouseout=function(){
    this.getElementsByTagName("ul")[0].style.display="none"
    }
    }
  }
}


if (window.addEventListener)
window.addEventListener("load", createcssmenu, false);
else if (window.attachEvent)
window.attachEvent("onload", createcssmenu);



         function popitup(url) {
                 newwindow=window.open(url,'name','height=600,width=520');
                 if (window.focus) {newwindow.focus()}
                 return false;
                 }

         function popitup2(url) {
                 newwindow=window.open(url,'name','height=600,width=800');
                 if (window.focus) {newwindow.focus()}
                 return false;
                 }

         function popitup3(url) {
                 newwindow=window.open(url,'name','height=300,width=500');
                 if (window.focus) {newwindow.focus()}
                 return false;
                 }

         function popitup4(url) {
                 newwindow=window.open(url,'name','height=900,width=800');
                 if (window.focus) {newwindow.focus()}
                 return false;
                 }



         function is_value(){
                 is_checked();
                 if (document.formular.pw.value=="" || document.formular.user.value==""
                 || document.formular.name.value == "" || document.formular.vorname.value == ""
                 || document.formular.org.value == ""  || document.formular.plz.value == ""
                 || document.formular.strasse.value == "" || document.formular.telefon.value == ""
                 || document.formular.email.value == ""){
                 alert('Bitte füllen Sie die Felder aus');
                 return false;
                 }
                 }

         function popitup5(url) {
                 newwindow=window.open(url,'name','height=750,width=650');
                 if (window.focus) {newwindow.focus()}
                 return false;
         }


         function is_checked(){
                 if (document.formular.checker.checked == true) {
                 //document.formular.Submit.disabled = false;
         }else {
                 //document.formular.Submit.disabled = true;
                 alert('Sie müssen die AGB aktzeptieren um das Formular abschicken zu können!');
                 return false;
                 }
         }

         function reset(){

                 if (document.formular.pw.value=="" || document.formular.user.value==""
                 || document.formular.name.value == "" || document.formular.vorname.value == ""
                 || document.formular.org.value == ""  || document.formular.plz.value == ""
                 || document.formular.strasse.value == "" || document.formular.telefon.value == ""
                 || document.formular.email.value == ""){

                 return false;
                 }
                 }


