// 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.");
}

function ShowMessage()
{
   HideForward();
   document.getElementById("message").style.visibility = "visible";
}

function HideMessage()
{
   document.getElementById("message").style.visibility = "hidden";
}

function ShowForward()
{
   HideMessage();
   document.getElementById("forward").style.visibility = "visible";
}

function HideForward()
{
   document.getElementById("forward").style.visibility = "hidden";
}

function BookmarkProfile(url, title)
{
   if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4))
      window.external.AddFavorite(url, title);
   else if (navigator.appName == "Netscape")
      window.sidebar.addPanel(title, url, "");
   else
      alert("If you use Netscape, press CTRL+D. If you use Opera, press CTRL+T.\nSorry this can't be done automatically.");   
}

function ShowAllComments()
{
   location.href = "default.aspx?action=showallcomments";
}

function Code(i)
{
   if (document.getElementById("code" + i).value.length == 5)
      document.getElementById("code" + (i+1)).focus();
}

function ShowPhones()
{
   var win_phones = window.open("../templates/phones.asp","phones","status=no,scrollbars=yes,menu=no,height=400,width=500");
   win_phones.focus();
}
//-->
