 /* Displays url in the info box  */
  function popLogin(url) {
    window.sendurl = url;
    popupWnd = window.open(url, 'ic', 'width=250,height=350,resizable=no,scrollbars=yes,menubar=no,toolbar=no,directories=no,location=no,status=no');
    popupWnd.focus();
    if (popupWnd.opener == null) {
      popupWnd.opener = this;
    }
    return false;
  }

function openWindow (url, name, widgets) {
    popupWin = window.open (url, name, widgets);
    popupWin.opener.top.name="opener";
    popupWin.focus();
    return false;
} 

  function askconfirm(conftext, oneparameter, twoparameters) {
    var action = document.tools.action.value;
    var parameter1 = document.tools.par1.value;
    var parameter2 = document.tools.par2.value;
    if ( ( action == "rename" || action == "move" ) && (parameter1 == "" || parameter2 == "") )
    {
      alert(twoparameters);
      document.tools.par2.focus();
      return false;
    }
    if ( parameter1 == "" ) 
    {
      alert(oneparameter);
      document.tools.par1.focus();
      return false;
    }
    if  ( action == "edit" ) 
      { 
	return true;
      }
    return confirm(conftext + " " + document.tools.action.value + " " + document.tools.par1.value + "?");
  }

  function checkfilename(entry_string, err_text)
  {
    var r = false;
    var par1 = document.tools.par1.value;
    var entries = entry_string.split(";");
    var action = document.tools.action.value;

    if (document.tools.action.value == "create") 
      return true;

    if (par1 != ".." && action == "delete" || action == "rename" || action == "edit" || action == "move") 
      {
	for (var i = 0; i < entries.length; ++i)
	  if (entries[i] == par1 || par1 == " " + entries[i]) return true;
      }
    alert (document.tools.par1.value + " " + err_text);
    document.tools.par1.focus();
    return r;    
  }

  function confirmerase(conftext) {
    if ( confirm(conftext) )
      {
	document.eraseall.confirm.value = "yes";
	return true;
      }
    else
      {
	return false;
      }
  }
