// JavaScript Document
//functions.js
//Create a boolean variable to check for a valid IE instance.
var xmlhttp = false;
//Check if we are using IE.
try {
//If the javascript version is greater than 5.
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
//If not, then use the older active x object.
try {
//If we are using IE.
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
} catch (E) {
//Else we must be using a non-IE browser.
xmlhttp = false;
}
}
//If we are using a non-IE browser, create a JavaScript instance of the object.
if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
xmlhttp = new XMLHttpRequest();
}
///
function newForm (){

//The location we are loading the page into.
var objID = "forms";
var serverPage = "form.inc.php";
//Take into account the backspace.

var obj = document.getElementById(objID);
xmlhttp.open("GET", serverPage);
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
obj.innerHTML = xmlhttp.responseText;
}
}
xmlhttp.send(null);
}///
/////////
function newPageInfo (){

//The location we are loading the page into.
var objID = "forms";
var serverPage = "page.inc.php";
//Take into account the backspace.

var obj = document.getElementById(objID);
xmlhttp.open("GET", serverPage);
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
obj.innerHTML = xmlhttp.responseText;
}
}
xmlhttp.send(null);
}///
/////////
/////////
function newContent (){

//The location we are loading the page into.
var objID = "forms";
var serverPage = "content.inc.php";
//Take into account the backspace.

var obj = document.getElementById(objID);
xmlhttp.open("GET", serverPage);
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
obj.innerHTML = xmlhttp.responseText;
}
}
xmlhttp.send(null);
}///
/////////
//////////
function newEntry (value){

//The location we are loading the page into.
var objID = "entriLinks";
var serverPage = "entry.inc.php?value=" + value;
//Take into account the backspace.

var obj = document.getElementById(objID);
xmlhttp.open("GET", serverPage);
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
obj.innerHTML = xmlhttp.responseText;
}
}
xmlhttp.send(null);
}///
///
function getformvalues (fobj, valfunc){
var str = "";
aok = true;
var val;
//Run through a list of all objects contained within the form.
for(var i = 0; i < fobj.elements.length; i++){
if(valfunc) {
if (aok == true){
val = valfunc (fobj.elements[i].value,fobj.elements[i].name);
if (val == false){
aok = false;
}
}
}
str += fobj.elements[i].name + "=" + escape(fobj.elements[i].value) + "&";
}
//Then return the string values.
return str;
}
////
function submitform (loadMessage,theform, serverPage, objID, valfunc){
var file = serverPage;
var str = getformvalues(theform,valfunc);
setStatus (loadMessage,objID);
//If the validation is ok.
if (aok == true){
obj = document.getElementById(objID);
processajax (serverPage, obj, "post", str);
}
}
///relate options
/////////
function getTitle (id){

//The location we are loading the page into.
var objID = "mti";
var serverPage = "title.inc.php?pid=" + id;
//Take into account the backspace.

var obj = document.getElementById(objID);
xmlhttp.open("GET", serverPage);
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
obj.innerHTML = xmlhttp.responseText;
}
}
xmlhttp.send(null);
}///
/////////
/////////
function getTitle2 (id){

//The location we are loading the page into.
var objID = "mti";
var serverPage = "title.inc.php?qid=" + id;
//Take into account the backspace.

var obj = document.getElementById(objID);
xmlhttp.open("GET", serverPage);
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
obj.innerHTML = xmlhttp.responseText;
}
}
xmlhttp.send(null);
}///
/////////
function newMain (){

//The location we are loading the page into.
var objID = "forms";
var serverPage = "main.inc.php?";
//Take into account the backspace.
setStatus ("<img src='../images/loader.gif'/> <font size='2'color='blue'>Loading . Please wait...</font>","forms");

var obj = document.getElementById(objID);
xmlhttp.open("GET", serverPage);
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
obj.innerHTML = xmlhttp.responseText;
}
}
xmlhttp.send(null);
}///
/////////
/////////
function newStyle(){

//The location we are loading the page into.
var objID = "forms";
var serverPage = "style.inc.php";
//Take into account the backspace.
setStatus ("<img src='../images/loader.gif'/> <font size='2'color='blue'>Loading . Please wait...</font>","forms");

var obj = document.getElementById(objID);
xmlhttp.open("GET", serverPage);
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
obj.innerHTML = xmlhttp.responseText;
}
}
xmlhttp.send(null);
}///
/////////
function mutiple_click_event(func)
{
submitform(document.getElementById('m_formx'),'php/process_form.php','mid_top'),clear_itextbox();
//countNoOfEntries();
}
function clear_itextbox() {
d=document;
d.tnewForm.itext.value='';
}

////
function newList(){

//The location we are loading the page into.
var objID = "forms";
var serverPage = "list.inc.php";
//Take into account the backspace.

var obj = document.getElementById(objID);
xmlhttp.open("GET", serverPage);
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
obj.innerHTML = xmlhttp.responseText;
}
}
xmlhttp.send(null);
}///
/////////
////
function sendContent(id){

//The location we are loading the page into.
var objID = "listPlace";
var serverPage = "scontent.inc.php?cid=" + id;
//Take into account the backspace.

var obj = document.getElementById(objID);
xmlhttp.open("GET", serverPage);
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
obj.innerHTML = xmlhttp.responseText;
}
}
xmlhttp.send(null);
}///
/////////

function insertList(id){

tdiv="plc" + id;
//The location we are loading the page into.
var objID = tdiv;
var serverPage = "listform.inc.php?cid=" + id;
//Take into account the backspace.

var obj = document.getElementById(objID);
xmlhttp.open("GET", serverPage);
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
obj.innerHTML = xmlhttp.responseText;
}
}
xmlhttp.send(null);
}///
/////////
/////////
function editMain (value){

//The location we are loading the page into.
var objID = "forms";
var serverPage = "emain.inc.php?etype=" + value;
//Take into account the backspace.

var obj = document.getElementById(objID);
xmlhttp.open("GET", serverPage);
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
obj.innerHTML = xmlhttp.responseText;
}
}
xmlhttp.send(null);
}///
/////////
function forEdit (group,id,etype){

//The location we are loading the page into.
var objID = "mainlink_";
var serverPage = "e2main.inc.php?group=" + group + "&id=" + id + "&etype=" + etype;
//Take into account the backspace.

var obj = document.getElementById(objID);
xmlhttp.open("GET", serverPage);
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
obj.innerHTML = xmlhttp.responseText;
}
}
xmlhttp.send(null);
}///
/////////

///
function editForm (){

//The location we are loading the page into.
var objID = "forms";
var serverPage = "eform.inc.php";
//Take into account the backspace.

var obj = document.getElementById(objID);
xmlhttp.open("GET", serverPage);
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
obj.innerHTML = xmlhttp.responseText;
}
}
xmlhttp.send(null);
}///
/////////
////////
function editPageInfo (){

//The location we are loading the page into.
var objID = "forms";
var serverPage = "epage.inc.php";
//Take into account the backspace.
setStatus ("<img src='../images/loader.gif'/> <font size='2'color='blue'>Loading . Please wait...</font>","forms");

var obj = document.getElementById(objID);
xmlhttp.open("GET", serverPage);
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
obj.innerHTML = xmlhttp.responseText;
}
}
xmlhttp.send(null);
}///
/////////
/////////
function editContent (value){

//The location we are loading the page into.
var objID = "forms";
var serverPage = "econtent.inc.php?etype=" + value;
//Take into account the backspace.
setStatus ("<img src='../images/loader.gif'/> <font size='2'color='blue'>Loading . Please wait...</font>","forms");

var obj = document.getElementById(objID);
xmlhttp.open("GET", serverPage);
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
obj.innerHTML = xmlhttp.responseText;
}
}
xmlhttp.send(null);
}///
/////////
////
function editList(value){

//The location we are loading the page into.
var objID = "forms";
var serverPage = "elist.inc.php?etype=" + value;
//Take into account the backspace.
setStatus ("<img src='../images/loader.gif'/> <font size='2'color='blue'>Loading . Please wait...</font>","forms");

var obj = document.getElementById(objID);
xmlhttp.open("GET", serverPage);
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
obj.innerHTML = xmlhttp.responseText;
}
}
xmlhttp.send(null);
}///
/////////
/////////
function getTitleL (id,etype){

//The location we are loading the page into.
var objID = "mti";
var serverPage = "Ltitle.inc.php?qid=" + id + "&&etype=" + etype;
//Take into account the backspace.

var obj = document.getElementById(objID);
xmlhttp.open("GET", serverPage);
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
obj.innerHTML = xmlhttp.responseText;
}
}
xmlhttp.send(null);
}///
/////////
/////////
function editStyle(){

//The location we are loading the page into.
var objID = "forms";
var serverPage = "estyle.inc.php";
//Take into account the backspace.
setStatus ("<img src='../images/loader.gif'/> <font size='2'color='blue'>Loading . Please wait...</font>","forms");

var obj = document.getElementById(objID);
xmlhttp.open("GET", serverPage);
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
obj.innerHTML = xmlhttp.responseText;
}
}
xmlhttp.send(null);
}///
/////////
function editBanner (){

//The location we are loading the page into.
var objID = "forms";
var serverPage = "banner.inc.php";
//Take into account the backspace.

var obj = document.getElementById(objID);
xmlhttp.open("GET", serverPage);
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
obj.innerHTML = xmlhttp.responseText;
}
}
xmlhttp.send(null);
}///
////
function newReview(){

//The location we are loading the page into.
var objID = "forms";
var serverPage = "review.inc.php";
//Take into account the backspace.
setStatus ("<img src='../images/loader.gif'/> <font size='2'color='blue'>Loading . Please wait...</font>","forms");

var obj = document.getElementById(objID);
xmlhttp.open("GET", serverPage);
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
obj.innerHTML = xmlhttp.responseText;
}
}
xmlhttp.send(null);
}///
////
function show_item(value){

//The location we are loading the page into.
var objID = "content";
var serverPage = "pages.inc.php?p=" + value;
//Take into account the backspace.
setStatus ("<img src='images/loader.gif'/> <font size='2'color='blue'>Loading . Please wait...</font>",objID);

var obj = document.getElementById(objID);
xmlhttp.open("GET", serverPage);
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
obj.innerHTML = xmlhttp.responseText;
}
}
xmlhttp.send(null);
}///
function newEvent(){

//The location we are loading the page into.
var objID = "forms";
var serverPage = "event.inc.php";
//Take into account the backspace.
setStatus ("<img src='../images/loader.gif'/> <font size='2'color='blue'>Loading . Please wait...</font>","forms");

var obj = document.getElementById(objID);
xmlhttp.open("GET", serverPage);
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
obj.innerHTML = xmlhttp.responseText;
}
}
xmlhttp.send(null);
}///

function showEvent(value){

//The location we are loading the page into.
var objID = "content";
var serverPage = "events.inc.php?id=" + value;
//Take into account the backspace.
setStatus ("<img src='images/loader.gif'/> <font size='2'color='blue'>Loading News & Events. Please wait...</font>","content");
var obj = document.getElementById(objID);
xmlhttp.open("GET", serverPage);
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
obj.innerHTML = xmlhttp.responseText;
}
}
xmlhttp.send(null);
}///
///
function showTestimony(value){

//The location we are loading the page into.
var objID = "content";
var serverPage = "testimony.inc.php?id=" + value;
//Take into account the backspace.
setStatus ("<img src='images/loader.gif'/> <font size='2'color='blue'>Loading Testimonies. Please wait...</font>","content");
var obj = document.getElementById(objID);
xmlhttp.open("GET", serverPage);
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
obj.innerHTML = xmlhttp.responseText;
}
}
xmlhttp.send(null);
}///
///
function showTestimony2(value){

//The location we are loading the page into.
var objID = "content";
var serverPage = "testimony2.inc.php?id=" + value;
//Take into account the backspace.
setStatus ("<img src='images/loader.gif'/> <font size='2'color='blue'>Loading the Testimony. Please wait...</font>","content");
var obj = document.getElementById(objID);
xmlhttp.open("GET", serverPage);
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
obj.innerHTML = xmlhttp.responseText;
}
}
xmlhttp.send(null);
}///
///
function newTestimony(){

//The location we are loading the page into.
var objID = "forms";
var serverPage = "testimony.inc.php";
//Take into account the backspace.
setStatus ("<img src='../images/loader.gif'/> <font size='2'color='blue'>Loading . Please wait...</font>","forms");
var obj = document.getElementById(objID);
xmlhttp.open("GET", serverPage);
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
obj.innerHTML = xmlhttp.responseText;
}
}
xmlhttp.send(null);
}///
///
function editTestimony(){

//The location we are loading the page into.
var objID = "forms";
var serverPage = "testimony.inc.php?edit=" + 1;
//Take into account the backspace.
setStatus ("<img src='../images/loader.gif'/> <font size='2'color='blue'>Loading . Please wait...</font>","forms");

var obj = document.getElementById(objID);
xmlhttp.open("GET", serverPage);
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
obj.innerHTML = xmlhttp.responseText;
}
}
xmlhttp.send(null);
}///
///
///
function editTestimony2(value){

//The location we are loading the page into.
var objID = "forms";
var serverPage = "testimony.inc.php?edit=" + 1 +"&title=" + value;
//Take into account the backspace.
setStatus ("<img src='../images/loader.gif'/> <font size='2'color='blue'>Loading . Please wait...</font>","forms");

var obj = document.getElementById(objID);
xmlhttp.open("GET", serverPage);
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
obj.innerHTML = xmlhttp.responseText;
}
}
xmlhttp.send(null);
}///
///
function newDownloads(){

//The location we are loading the page into.
var objID = "forms";
var serverPage = "downloads.inc.php";
//Take into account the backspace.

var obj = document.getElementById(objID);
xmlhttp.open("GET", serverPage);
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
obj.innerHTML = xmlhttp.responseText;
}
}
xmlhttp.send(null);
}///
function uploadimg (theform){
//Submit the form.
theform.submit();
setStatus ("Loading...","showimg");
}
//
//Function to determine when the process_upload.php file has finished executing.
function doneloading(theframe,thefile){
var theloc = "showimg.php?thefile=" + thefile
theframe.processajax ("showimg",theloc);
}
//
//Function to set a loading status.
function setStatus (theStatus, theObj){
obj = document.getElementById(theObj);
if (obj){
obj.innerHTML = "<div class=\"bold\">" + theStatus + "</div>";
}
}
//
function getdownload(path){
//alert(path);
//The location we are loading the page into.

var objID = "content";
var serverPage ="?" + path;
//Take into account the backspace.

var obj = document.getElementById(objID);
xmlhttp.open("GET", serverPage);
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
obj.innerHTML = xmlhttp.responseText;
}
}
xmlhttp.send(null);
}///

function play_track(tid){
//alert(path);
//The location we are loading the page into.
setStatus ("<font class='copy'>Loading...</font>","audio_place");
var objPlace="place" + tid;
var objID = "audio_place";
var serverPage ="play.inc.php?tid=" + tid;
//Take into account the backspace.

var obj = document.getElementById(objID);
xmlhttp.open("GET", serverPage);
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
obj.innerHTML = xmlhttp.responseText;
}
}
xmlhttp.send(null);
}///
function definePage(page){
//alert(path);
//The location we are loading the page into.
setStatus ("Loading...","content");
var objID = "content";
var serverPage ="ajaxed.inc.php?def=" + page;
//Take into account the backspace.

var obj = document.getElementById(objID);
xmlhttp.open("GET", serverPage);
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
obj.innerHTML = xmlhttp.responseText;
}
}
xmlhttp.send(null);
}///
///
function sitemap(){
//alert(path);
//The location we are loading the page into.
setStatus ("Loading...","content");
var objID = "content";
var pass=1;
var serverPage ="ajaxed.inc.php?sitemap=" + pass;
//Take into account the backspace.

var obj = document.getElementById(objID);
xmlhttp.open("GET", serverPage);
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
obj.innerHTML = xmlhttp.responseText;
}
}
xmlhttp.send(null);
}///
///
function loadHome(){
//alert(path);
//The location we are loading the page into.
setStatus ("<font class='green'>Loading Home page. Please wait ...</font>","content");
var objID = "content";
var pass=1;
var serverPage ="home_default.inc.php";
//Take into account the backspace.

var obj = document.getElementById(objID);
xmlhttp.open("GET", serverPage);
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
obj.innerHTML = xmlhttp.responseText;
}
}
xmlhttp.send(null);
}///
function editEvent(){

//The location we are loading the page into.
var objID = "forms";
var serverPage = "event.inc.php?edit=1";
//Take into account the backspace.
setStatus ("<img src='../images/loader.gif'/> <font size='2'color='blue'>Loading . Please wait...</font>","forms");

var obj = document.getElementById(objID);
xmlhttp.open("GET", serverPage);
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
obj.innerHTML = xmlhttp.responseText;
}
}
xmlhttp.send(null);
}///
///
function editEvent2(value){

//The location we are loading the page into.
var objID = "forms";
var serverPage = "event.inc.php?edit=1&&id=" +value;
//Take into account the backspace.
setStatus ("<img src='../images/loader.gif'/> <font size='2'color='blue'>Loading . Please wait...</font>","forms");

var obj = document.getElementById(objID);
xmlhttp.open("GET", serverPage);
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
obj.innerHTML = xmlhttp.responseText;
}
}
xmlhttp.send(null);
}///


///
function disclaimer(){

//The location we are loading the page into.
var objID = "forms";
var serverPage = "disclaimer.inc.php";
//Take into account the backspace.
setStatus ("<img src='../images/loader.gif'/> <font size='2'color='blue'>Loading . Please wait...</font>","forms");

var obj = document.getElementById(objID);
xmlhttp.open("GET", serverPage);
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
obj.innerHTML = xmlhttp.responseText;
}
}
xmlhttp.send(null);
}///
//
////
function editReview(){

//The location we are loading the page into.
var objID = "forms";
var serverPage = "review.inc.php?edit=1";
//Take into account the backspace.
setStatus ("<img src='../images/loader.gif'/> <font size='2'color='blue'>Loading . Please wait...</font>","forms");

var obj = document.getElementById(objID);
xmlhttp.open("GET", serverPage);
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
obj.innerHTML = xmlhttp.responseText;
}
}
xmlhttp.send(null);
}///
//
function getRtitle(value){

//The location we are loading the page into.
var objID = "forms";
var serverPage = "review.inc.php?edit=1&&title=" + value;
//Take into account the backspace.
setStatus ("<img src='../images/loader.gif'/> <font size='2'color='blue'>Loading . Please wait...</font>","forms");

var obj = document.getElementById(objID);
xmlhttp.open("GET", serverPage);
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
obj.innerHTML = xmlhttp.responseText;
}
}
xmlhttp.send(null);
}///
///
//
function getRpros(value){

//The location we are loading the page into.
var objID = "forms";
var serverPage = "review.inc.php?edit=1&&pros=" + value;
//Take into account the backspace.
setStatus ("<img src='../images/loader.gif'/> <font size='2'color='blue'>Loading . Please wait...</font>","forms");

var obj = document.getElementById(objID);
xmlhttp.open("GET", serverPage);
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
obj.innerHTML = xmlhttp.responseText;
}
}
xmlhttp.send(null);
}///
///
function getNo(value){
//alert(path);
//The location we are loading the page into.
setStatus ("<font class='green'>Loading ...</font>","noplace");
var objID = "noplace";
var pass=1;
var serverPage ="getno.inc.php?tid=" + value;
//Take into account the backspace.

var obj = document.getElementById(objID);
xmlhttp.open("GET", serverPage);
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
obj.innerHTML = xmlhttp.responseText;
}
}
xmlhttp.send(null);
}///
//
//////////
function bannerMessage(value){

//The location we are loading the page into.
var objID = "entriLinks";
var serverPage = "banner.inc.php?value=" + value;
//Take into account the backspace.

var obj = document.getElementById(objID);
xmlhttp.open("GET", serverPage);
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
obj.innerHTML = xmlhttp.responseText;
}
}
xmlhttp.send(null);
}///
///
function the_pic(id){

//The location we are loading the page into.
var objID = "content";
var serverPage = "pic.inc.php?id=" + id;
//Take into account the backspace.
setStatus ("<img src='images/loader.gif'/> <font size='2'color='green'>Loading . Please wait...</font>",objID);

var obj = document.getElementById(objID);
xmlhttp.open("GET", serverPage);
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
obj.innerHTML = xmlhttp.responseText;
}
}
xmlhttp.send(null);
}///
/////////
