﻿// JScript File
function ShowHideFacturaForm()
{

	var divFactura = document.getElementById("divFactura");

    if (divFactura) 
    {
      if(divFactura.style.display == "none")
        divFactura.style.display = "";
      else
        divFactura.style.display = "none";
      
    }
}
function ReportImproperComment(postID)	                            
{
    var obj = document.getElementById("reportPost" + postID);
    if (obj) obj.style.display = "none";

    var objUI = document.getElementById("inUserId");
    if (objUI) 
    {
      var url = "/Record/common/services/PostReport.ashx?postid=" + postID +
        "&userid=" + objUI.value;
      var xmlhttp; 
       if (window.ActiveXObject) // for IE 
          xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); 
       else if (window.XMLHttpRequest) // for other browsers 
          xmlhttp = new XMLHttpRequest(); 

       xmlhttp.open("GET", url);
       xmlhttp.onreadystatechange = function() {
           if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {}
       }
       xmlhttp.send(null);       
     
        
    }
}

function setUserId(userID)	                            
{

    var obj = document.getElementById("inUserId");
    if (obj) obj.value = userID;


}