 function emmarkerror(id, req)
  {
    if(document.getElementById("empopupnotice" + id))
      $("#empopupnotice" + id).fadeOut(300);

    if(document.getElementById("emtextbox" + id) && req==1)
    {
      if($("#emtextbox" + id).val()=="")
        $("#emtextbox" + id).addClass("emerror");
      else
        $("#emtextbox" + id).removeClass("emerror");
    }
  }
  var emmarkerrorpopupid="";
  function emmarkerrorpopup(id)
  {
    if(emmarkerrorpopupid=="")
    {
      emmarkerrorpopupid=id;
      $(".empopuperror").fadeOut(300);
      $(".empopupnotice").fadeOut(300);
      if(document.getElementById("empopuperror" + id))
        $("#empopuperror" + id).fadeIn(300);
    }
  }
  function emmarknotice(id)
  {
    $(".empopuperror").fadeOut(300);
    $(".empopupnotice").fadeOut(300);
    if(document.getElementById("empopupnotice" + id))
      $("#empopupnotice" + id).fadeIn(300);
  }
  var bshowempaymentwait=false;
  function showempaymentwait()
  {
    if(bshowempaymentwait==true)
      return

    bshowempaymentwait=true;
    $('#empaymentwait').css('display','block');
  }
