/* ############################################# */
/* ###                                       ### */
/* ###        est computer & software        ### */
/* ###            Michael Lauber             ### */
/* ###                                       ### */
/* ###            est@info2000.de            ### */
/* ###        -------------------------      ### */
/* ###              10.07.2008               ### */
/* ###                                       ### */
/* ############################################# */
 

function doSubmit()
  {
    if (formCheck(est)) { document.est.submit(); }
  }



function formCheck(theForm)
  {
    if (theForm.suchbegriff.value.length < 3)
       { alert("Bitte geben Sie einen Suchbegriff ein."); theForm.suchbegriff.focus(); return (false); }

    return (true);
  }



function suche()
  {
    var theForm = document.forms[0];
    suchbegriff = theForm.suchbegriff.value;
    location.href="index.php?grp=SEARCH&suchbegriff=" + suchbegriff;
  }




function picShow(imgFile,imgTitle,dlgText)
  {
   var dlgTitle='est-software';
   var dlgHeight=550;
   var dlgWidth=750;

   dlgOptions='toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,left=50,top=100,height=' + dlgHeight + ',width=' + dlgWidth;

   dlg = window.open('est','',dlgOptions)
   with(dlg)
    {
      document.writeln('<html><head>');
      document.writeln('  <title>' + dlgTitle + '</title>');
      document.writeln('  <style type="text/css">');
      document.writeln('     <!--');
      document.writeln('       A       {color: #c0c0c0; font-family: Arial; font-size: 11px; text-decoration: none;}');
      document.writeln('       A:hover {color: #ffffff; text-decoration: underline;}');
      document.writeln('     -->');
      document.writeln('  </style>');
      document.writeln('</head>');

      document.writeln('<body color="#f7f8fb" bgcolor="#000000" topmargin="0" leftmargin="0" marginwidth="0" marginheight="0">');
      document.writeln('<div align="center">');
      document.writeln(' <center>');
      document.writeln('  <table border="0" cellspacing="0" width="100%" height="100%" cellpadding="0">');
      document.writeln('   <tr><td align="center">');
      document.writeln('     <table border="0" cellpadding="0" cellspacing="0">');
      document.writeln('      <tr><td align="center">');
      document.writeln('        <img src="' + imgFile + '" border="0" alt="' + imgTitle + '"><br>');
      document.writeln('        <font face="Verdana" size="2">' + dlgText + '<br><br></font>');
      document.writeln('      </td></tr>');
      document.writeln('      <tr><td valign="top" align="center">');
      document.writeln('        <a href="javascript:window.close();">Fenster schliessen</a>');
      document.writeln('      </td></tr>');
      document.writeln('     </table>');
      document.writeln('    </td></tr>');
      document.writeln('  </table>');
      document.writeln(' </center>');
      document.writeln('</div>');
      document.writeln('</html>');
    }
   dlg.focus();
  }

