function formcheck(theForm)
{
  if (theForm.Eingabe.value == "")
  {
    alert("Geben Sie einen Wert in das Feld \"Suchen\" ein.");
    theForm.Eingabe.focus();
    return (false);
  }
  if (theForm.Eingabe.value.length < 2)
  {
    alert("Geben Sie mindestens 2 Zeichen in das Feld \"Suchen\" ein.");
    theForm.Eingabe.focus();
    return (false);
  }
  return (true);
}

function doState()
  {
  }

function doStatex()
  {
   window.status = "_";
   setTimeout("doState()",100);
  }


function dbabfrage()
{
  var aufruf ="";
  var httpform = document.forms[0];
  Eingabe=httpform.Eingabe.value;
  location.href="p_suche.php?Eingabe="+Eingabe+"&limu=0";
}


function anzeige_insert()
{
  var d ="";
  d = window.open("cms/user/anzeigen_user.php" , "info" ,"toolbar=0,directories=0,status=0,menubar=0,scrollbars=1,width=600,height=500,top=10,right=10");
  d.focus();
}


function picShow(imgFile,imgTitle,dlgText)
{
  var imgPath='pics/';
  var dlgTitle='Bildansicht - est software -';
  var dlgHeight=400;  
  var dlgWidth=600;  
  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('info2000','',dlgOptions)
  with(dlg) 
   {
      document.writeln('<HTML><HEAD>');
      document.writeln('<TITLE>' + dlgTitle + '</TITLE>');
      document.writeln('<BODY 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 border="0" src="' + imgPath + 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('        <font face="Verdana" size="1">');
      document.writeln('        <a href="javascript:window.close();">Fenster schliessen</a></font>');
      document.writeln('      </td></tr>');
      document.writeln('     </table>');
      document.writeln('    </td></tr>');
      document.writeln('  </table>');
      document.writeln(' </center>');
      document.writeln('</div>');
   }
  dlg.focus();
}

