// (c) by Inovelop IT-Solutions
//------------------------------------------------------------------------------------------------


function DomainSearch()
{
  var sobj = document.domf.doms;
  IDS = window.open("http://www.inovelop.com/inoDomSearch/?dome=" + document.domf.dome.value + "&doms=" + sobj[sobj.selectedIndex].text,"DomainSearch","width=555,height=510,scrollbars=no");
  IDS.focus();
}


function ClearValue(obj)
{
  if (obj.value == "Benutzername") obj.value = "";
  if (obj.value == "Passwort") obj.value = "";
  if (obj.value == "username") obj.value = "";
  if (obj.value == "password") obj.value = "";
}


function EncPW(user, pw)
{
  var pc = new Array();
  var i = 0;

  for (i = 0; i < pw.length; i++)
  {
    if (i < user.length) pc[i] = user.charCodeAt(i);
    else pc[i] = 0;
    pc[i] = (pc[i] + pw.charCodeAt(i) - 123) % 256;
    if (pc[i] < 0) pc[i] += 256;
  }

  pw = "";
  for (i = 0; i < pc.length; i++)
    pw = pw + pc[i] + ":";

  return pw;
}


function CheckEnter(e)
{ 
  var tc = 0;
  if (!e) e = window.event;
  if (e.which) tc = e.which;
  else
    if (e.keyCode) tc = e.keyCode;
  if (tc == 13) Login();
}


function ShowTour(prod)
{
  Tour = window.open("/prod/" + prod + "/tour01.htm","Funktionsumfang","width=800,height=500,scrollbars=no");
  Tour.focus();
}
