// General
function CheckCompatibility()
{
   if (!document.getElementById)
      alert("Sorry, your browsers (or javascript) is not supported. Please send us an email about it, including your operating system and browser type/version, and we will try to include it in future.\n\nThank you, and sorry for the inconvenience.");
}

/*var n_ok = true;
var t_ok = true;

function CheckSaveStatus()
{
   if (n_ok && t_ok)
      document.getElementById("save").disabled = false;
   else
      document.getElementById("save").disabled = true;
}*/
//-->

// Comment
function SubmitComment(object_id)
{
   var content = document.getElementById("commentcontent").value;
   var name = document.getElementById("name").value;
   var email = document.getElementById("email").value;
   var url = document.getElementById("url").value;
	
   Popteevee._default.SubmitComment(object_id, content, name, email, url, ip, ShowComments_callback);
}

function ShowComments_callback(res)
{
   if (res.value != null)
   {
      if(document.getElementById("commentcontent").value != "")
      {
         document.getElementById("commentcontent").value = "";
         location.href="#commentsstart";
      }
      document.getElementById("showcomments").innerHTML = res.value;
   }
   else
      alert("Cannot connect to server. Please ensure you are online.");
}

function ShowComments(object_id)
{
   Popteevee._default.ShowComments(object_id, ShowComments_callback);
}

//-->



