function MakeWin(url,ww,hh,scrl,WinName)
  {
   NLWindow = window.open("",WinName,"toolbar=no,location=no,status=no,scrollbars="+scrl+",width="+ww+",innerWidth="+ww+",height="+hh+",innerheight="+hh+",screenX=100,screenY=100,pageXoffset=100,pageYoffset=100,resizable=yes");

   if (NLWindow.frames.length == 0)
     {
     NLWindow = window.open(url,WinName,"toolbar=no,location=no,status=no,scrollbars="+scrl+",width="+ww+",innerWidth="+ww+",height="+hh+",innerheight="+hh+",screenX=100,screenY=100,pageXoffset=100,pageYoffset=100,resizable=yes");
     }
   else
     {
     NLWindow.location.href = url;
     }
     NLWindow.focus();

  }

// Bei Link auf aktuelle Seite die CSS Klasse auf aktiv setzen //
function highlightCurrentPageLink() {

// Alle Links durchlaufen und pruefen

  var anzHrefs = document.getElementsByTagName("a").length;
  for (var i = 0; i <= anzHrefs - 1; i++) {
    thisurl = document.getElementsByTagName("a")[i].id;
    search1 = /^(CAT<#MENU_CAT_ID#>)$/g;
// Link auf aktuelle Seite gefunden, also umsetzen CSS auf aktiv
    if(search1.test(thisurl) == true)
      {
      document.getElementsByTagName("a")[i].className = "ShopMenuactive";
      }
    else if (!document.getElementsByTagName("a")[i].id && document.getElementsByTagName("a")[i].href == document.location.href) {
      document.getElementsByTagName("a")[i].className = "ShopMenuactive";
      }
    }
  }

function MailForm()
  {
  ThatForm = document.Mailform;

  if(ThatForm.c_name.value=='')
    {
    alert("Please supply your name!");
    ThatForm.c_name.focus();
    return false;
    }
  if(ThatForm.c_email.value=='')
    {
    alert("Please supply your email address!");
    ThatForm.c_email.focus();
    return false;
    }
  if((ThatForm.c_email.value.indexOf("@") == -1) || (ThatForm.c_email.value.indexOf(".") == -1))
    {
    alert("Please enter a valid email address!");
    ThatForm.c_email.focus();
    return false;
    }
  if(ThatForm.c_message.value=='')
    {
    alert("Please supply a message!");
    ThatForm.c_message.focus();
    return false;
    }
  return true;
  }