  var Icons = new Array()
  var RootPath = "/"
  var PicPath = "/images/"

  function preloadImages()
  {
    for(i=0;i<14;i++)
    {
      Icons[i] = new Image();
    }
    Icons[0].src = PicPath + "design/txtBack.gif";
    Icons[1].src = PicPath + "design/txtBackA.gif";
    Icons[2].src = PicPath + "design/txtBookmark.gif";
    Icons[3].src = PicPath + "design/txtBookmarkA.gif";
    Icons[4].src = PicPath + "design/txtContact.gif";
    Icons[5].src = PicPath + "design/txtContactA.gif";
    Icons[6].src = PicPath + "design/txtForward.gif";
    Icons[7].src = PicPath + "design/txtForwardA.gif";
    Icons[8].src = PicPath + "design/txtHome.gif";
    Icons[11].src = PicPath + "design/txtHomeA.gif";
    Icons[12].src = PicPath + "design/txtPrint.gif";
    Icons[13].src = PicPath + "design/txtPrintA.gif";
  }

  function JumpTo()
  {
	var oTarget = document.Quickfinder.TargetURL;
	if(oTarget[oTarget.selectedIndex].value=="#")
	{
	  oTarget.selectedIndex = 0;
	}
	else
	{
	  NewWindow = window.open(oTarget[oTarget.selectedIndex].value);
	  NewWindow.focus();
	  oTarget.selectedIndex = 0
	}
  }

  function iconChange(strPic)
  {
	if(document.getElementById)
	{
	  document.getElementById("txtIcon").src = PicPath + "design/" + strPic + ".gif";
	  document.getElementById("txtIconA").src = PicPath + "design/" + strPic + "A.gif";
	}
	else if(document.all)
	{
	  document.all("txtIcon").src = PicPath + "design/" + strPic + ".gif"
	  document.all("txtIconA").src = PicPath + "design/" + strPic + "A.gif";
	}
  }

  function myPrint()
  {
	if (window.print)
	{
	  if (confirm("Seite ausdrucken?"))
	  {
		window.print();
      }
    }
  }
  
  function joinUs()
  {  
    joinPopUp = window.open("/contact/joinus/popup.asp","joinPopUp","width=250,height=90,top=100,left=100,resizable=no,scrollbars=no,menubar=no,toolbar=no,status=no,location=no");
  }  

	function ChkEmail(strTemp) {
		var check = false;
		if (strTemp.length > 0) {
			if (strTemp.indexOf("@") > 0) {
				if (strTemp.indexOf(".") > 0 && strTemp.indexOf(".") < strTemp.length - 1) {
					check = true;
				}
			}
		}
		return check;
	}

	function GetToPage(pagename) {
		var pageno = document.pages.page.value;
		document.location.href = pagename + pageno;
	}

	function CurrentDate(SelectBox) {
		var currentDate = new Date();
		if (SelectBox == "release") {
			document.forms[0].releaseMonth.value = currentDate.getMonth() + 1;
			document.forms[0].releaseDay.value = currentDate.getDate();
			document.forms[0].releaseYear.value = currentDate.getYear();
		}
		if (SelectBox == "expire") {
			document.forms[0].expireMonth.value = currentDate.getMonth() + 1;
			document.forms[0].expireDay.value = currentDate.getDate();
			document.forms[0].expireYear.value = currentDate.getYear();
		}
	}

	function FormatText(Tag) {
		tmpStartTag = "<" + Tag + ">";
		tmpEndTag = "</" + Tag + ">";
		GetSelection(tmpStartTag, tmpEndTag, null);
	}

	function GetSelection(strBefore, strAfter, strContent) {
		var Selection = document.selection.createRange();
		if (Selection.text != "" && Selection.text != null) {
			Selection.text = strBefore + Selection.text + strAfter;
		} else {
			document.News.Text.value = document.News.Text.value + strBefore + strContent + strAfter;
		}
	}

	function markText() {
		document.forms[0].CSSCode.select();
	}
