/*function showIt() {
 	var aTags=document.getElementById('options').getElementsByTagName('a');
 	for (i=0; i<aTags.length; i++) {
  	 aTags[i].onclick=function() {
   	 var show=this.href.split('content=')[1];
   	 ajaxSwitch(show);
   	 return false;
  	 }
 	}
}
window.onload=showIt;
*/

//The following method is used to grab "flex_entries" data from the database, to dispaly on site front end

var http = false;

if(navigator.appName == "Microsoft Internet Explorer") {
  http = new ActiveXObject("Microsoft.XMLHTTP");
} else {
  http = new XMLHttpRequest();
} 

function replace(entryvalue) {	
	
  http.open("GET", "flexentries.php?entry="+entryvalue, true);
  http.onreadystatechange=function() {
    if(http.readyState == 4) {
      document.getElementById('infoBox').innerHTML = http.responseText;
    }
  }
  http.send(null);
}

