

// verschiedene javascript funktionen
// el moreno 2002
// michael kroll - plumsoft systemhaus gmbh regensburg -
// www.plumsoft.de
// kroll@plumsoft.de
/*
must be this
<script language="JavaScript" src="../functions.js" type="text/javascript"></script>
*/

// default status

	    window.defaultStatus = 'el moreno' ;
// mm funktions

function MM_displayStatusMsg(msgStr) { //v1.0
  status=msgStr;
  document.MM_returnValue = true;
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

// neue seite  ########## goTo(x) ##########

        function goTo(x) {
                window.location.href = x;
        }

// formcheck ########## formCheck() ##########

       function formCheck() {

        if(document.forms[0].name.value == "")
                  {
                   alert("Geben Sie Ihren Namen ein!");
                   document.forms[0].name.focus();
                   return false;
                  }

        if(document.forms[0].vorname.value == "")
                  {
                   alert("Geben Sie Ihren Vornamen ein!");
                   document.forms[0].vorname.focus();
                   return false;
                  }


        if(document.forms[0].ort.value == "")
                  {
                   alert("Geben Sie Ihren Wohnort ein!");
                   document.forms[0].ort.focus();
                   return false;
                }


         if(document.forms[0].phon.value == "")
                  {
                   alert("Geben Sie Ihre Rufnummer ein!");
                   document.forms[0].phon.focus();
                   return false;
                  }

         if(document.forms[0].anfrage.value == "")
                  {
                   alert("Geben Sie Ihre Anfrage ein!");
                   document.forms[0].anfrage.focus();
                   return false;
                  }

        }

    // open centered window with location, name, width, height, res

    var winUrl;
    var winName;
    var winWidth ;
    var winHeight;
    var winScroll;

    function popUpWin(u,n,w,h,sb) {
        winUrl = 'u';
        winName = 'n';
        winWidth = w;
        winHeight = h;
        winScroll = sb;
        var attrs = "scrollbars=" + winScroll + ",resizable=yes,location=no,menubar=no,toolbar=no,status=no,width="+winWidth+",height="+winHeight+",top="+((screen.height-winHeight)/2)+",left="+((screen.width-winWidth)/2);
        popUp = window.open(u,n,attrs);
        popUp.focus();
    }
