xappl_host = "www1.gebr-weiss.com";

function fISISLight()
{
	var isAbsender="true";
	if (document.RandNavi.Absender[1].checked) {
		isAbsender="false";
	}
	
  if (document.RandNavi.Auftragsnummer.value.length > 2)
  {
    if (document.RandNavi.Auftragsname.value.length > 1)
    {				
  	window.open('/lobo/servlet/Generator?Sprache=DE&AuftragNr=' + document.RandNavi.Auftragsnummer.value + '&Ort=' + document.RandNavi.Ort.value + '&Firma=' + document.RandNavi.Auftragsname.value + '&Absender=' + isAbsender , 'ISISLight', 'width=470,height=520,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=no,location=no,menubar=no');
 }
    else
    {
      alert("Der Name muß mindestens 2 Zeichen enthalten.");
      document.RandNavi.Ausftragsname.focus();
    }
  }
  else
  {
    alert("Die Auftragsnummer muß mindestens 3 Zeichen enthalten.");
    document.RandNavi.Auftragsnummer.focus();  
  }
}

function fOffert()
{
   window.open('/lobo/prj/eoffert/de/eoffert.html', 'statusabfrage_1', 'width=480,height=520,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=no,location=no,menubar=no');
}

function fRelation()
{
   if (document.RandNavi.vonplz.value.length > 2 && document.RandNavi.bisplz.value.length > 2)
   {
      document.RandNavi.action="/de/news/Relation.jsp";
      document.RandNavi.submit();
   }
   else
   {
      alert("Bitte geben Sie die Postleitzahlen der Orte ein!");
   }
}

function fISISIWIS()
{
   win2=window.open("/lobo/de/fstart.html","ISISIWIS", "width=450,height=410,toolbar=no,directories=no,status=no,scrollbars=no,resizable=no,location=no,menubar=no"); 
   win2.moveTo(1,1);
   win2.focus();
}

function fLogisticsBrowser()
{
	win3=window.open("http://www.inet-logistics.com/servlet/LogisticsBrowser?Lang=DE&Branding=weisslogistics.com", "LogisticsBrowserMain");
	win3.focus();
}


function checkFeldlaengen()
{
  if (document.Suchmaske.AuftragNr.value.length > 2)
  {
    if (document.Suchmaske.Firma.value.length > 1)
    {
      document.Suchmaske.submit();
    }
    else
    {
      alert("Der Name muß mindestens 2 Zeichen enthalten.");
      document.Suchmaske.Firma.focus();
    }
  }
  else
  {
    alert("Die Auftragsnummer muß mindestens 3 Zeichen enthalten.");
    document.Suchmaske.AuftragNr.focus();  
  }
}
function Feldsetzen(Pos, AktWert, EinWert)
{
  if(AktWert=='?' || AktWert=='')
  {
    switch(Pos)
    {
    case "1":
      document.Suchmaske.Firma.value=EinWert;
      break;
    case "2":
      document.Suchmaske.AuftragNr.value=EinWert;
      break;
    }
  }
}






