// JavaScript Document

// primary ajax function
function ajaxFunction(inLink)
{
var xmlhttp;

if (window.XMLHttpRequest)
  {
	  // code for IE7+, Firefox, Chrome, Opera, Safari
	  xmlhttp=new XMLHttpRequest();
  }
else if (window.ActiveXObject)
  {
	  // code for IE6, IE5
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
else
  {
	  alert("Your browser does not support XMLHTTP!");
  }

// this is when the server has been connected to and is ready
xmlhttp.onreadystatechange=function()
{
if(xmlhttp.readyState==4)
  {
	  document.getElementById("mainContent").innerHTML=xmlhttp.responseText;
  }
}

var path = "getcontent.php?slug=" + inLink;
xmlhttp.open("GET",path,true);
xmlhttp.send(null);

}

// form validator
function FormValidator(theForm){
                if (theForm.userid.value==""){
                                alert("Please enter the user id.");
                                theForm.userid.focus();
                                return (false);
                }
                if (theForm.pass.value==""){
                                alert("Please enter the password.");
                                theForm.pass.focus();
                                return (false);
                }
                                return (true);
                }

