function SetMainPage(htmlpage)
{
  parent.mainframe.window.location.href = htmlpage;
}

function SetInfoPage(htmlpage)
{
  parent.infoframe.window.location.href = htmlpage;
}

function SetLeftPage(htmlpage)
{
  parent.leftframe.window.location.href = htmlpage;
}

function SetFocus(Feld)
{
  if (document.forms[0][Feld]) {
    document.forms[0][Feld].focus();
  }
}

function SetSubMenu(htmlpage)
{
  parent.submenuframe.window.location.href = htmlpage;
}

function OpenNewWindow(file, option)
{
  if (option == "") {
    option = "status=no, toolbar=no, menubar=no, location=no, top=10, left=10, width=740, height=620"
  }

  window.open(file, "fenster", option)
}

function CheckAGB(sender)
{
  if (document.forms[0].agbgelesen.checked == false) {
    alert("Sie müssen unsere AGB's akzeptieren!");
  }
  else {
    if (sender != "") {
      if (document.forms[0].fsender) {
        document.forms[0].fsender.value = sender;
      }
    }
    if (document.forms[0].btbestell) {
      document.forms[0].btbestell.value = "Bitte warten...";
      document.forms[0].btbestell.disabled = "disabled";
    }

    if (document.forms[0].btsend) {
      document.forms[0].btsend.value = "Bitte warten...";
      document.forms[0].btsend.disabled = "disabled";
    }
    document.forms[0].submit();
  }
}

function CheckSaveButton()
{
  alert("CheckFields!");
}

function FramesetTest(Address)
{
  //alert("Address=" + Address);
  if (top.frames.length == 0) {
    if (Address == "") {
    }

    if (document.images) {
      top.location.replace(Address);
    }
    else {
      top.location.href = Address;
    }
  }
}

function Jump()
{
  if (top.location.search!="") {
    var Size=top.location.search.length;
    var Address=top.location.search.substring(1,Size);
    if (document.images) {
      top.mainframe.location.replace(Address);
    }
    else {
      top.mainframe.location.href=Address;
    }
  }
}
