  function toss(evt)
  {
    var unicode = evt.charCode ? evt.charCode : evt.keyCode;

   // Allows numbers, backspace, and a period.
    if ((unicode < 48 || unicode > 57) && String.fromCharCode(unicode) != "."  &&
      unicode != 8 && unicode != 9)
    {
      return false;

    } else {
    return true;
    }

  } // end function definition

  function showhide(elmid)
  {
    var elm = document.getElementById(elmid);
    if (elm.style.display == "none")
    {
      elm.style.display = "block";
    } else {
      elm.style.display = "none";
    }
  } // end function definition


  function withdraw(id)
  {
    var ok = confirm("Are you sure you want to withdraw this response?\nThis response cannot be retrieved once withdrawn.");

    if (ok)
    {
      window.location="withdraw_response.php?p=" + id;
    }
  } // end function definition

  function accept(id, rfp)
  {
    var ok = confirm("Are you sure you want to accept this proposal?");

    if (ok)
    {
      window.location = "accept_proposal.php?rr=" + id + "&r=" + rfp;
    }

  } // end function definition

  function isBlank(val)
  {    if (val.length == 0 || val == " ")
    {      return true;
    } else {    	return false;
    }
  } // end function definition

  function isEmail(val)
  {    if (val.indexOf("@") != -1 && val.indexOf(".") != -1 && val.length >= 6)
    {    	return true;
    } else {      return false;
    }
  } // end function definition

