	   function gotoURL(url)
{
	document.getElementById("lightbox").style.display = "none";
	window.location.href = url;
	
}

	   
	   
	   function toggleSections(section)
	{
    document.getElementById(section).style.display = "block";
    
 if (section != "details")
      document.getElementById("details").style.display = "none";
    if (section != "lightboxpage")
      document.getElementById("lightboxpage").style.display = "none";
          
    document.remember_page.my_value.value = section;
    document.remember_page.submit();

    return false;
	}
	
	var object_busy= false;
	ShowLoading = 1 ; 
	var MyTimer = null;
	
	Myvar = "<img src='../images/lightbox_bg.png' width='100%' height='100%'>";
	
	function RequireAjaxData($Request, $Control) {
		if ($Control == "" || $Control == null)	{alert ("No output specified !"); return;}
		var ai = new AJAXInteraction($Request, GetServerData,  $Control );
	  ai.doGet();
	}
	
	   function RequireAjaxData_post($Request, $Control) {
      if ($Control == "" || $Control == null)   {alert ("No output specified !"); return;}
      var ai = new AJAXInteraction($Request, GetServerData,  $Control );
     ai.doPost("sendForm");
   }
	
	function GetServerData  ($TheData, $Control){
		document.getElementById($Control).innerHTML = $TheData;
	}

	function AJAXInteraction(url, callback, $Control) {
	   	var req = init();
	    req.onreadystatechange = processRequest;
        
    	function init() {
			if	(window.XMLHttpRequest)		{	return new XMLHttpRequest();					} 
			else if (window.ActiveXObject)	{	return new ActiveXObject("Microsoft.XMLHTTP");  }
			else {alert ("Your browser seems to be out of date, Please update!"); return;		}
	    }
    
    	function processRequest () {
			if (req.readyState == 4) {
		        if (req.status == 200) callback(req.responseText, $Control);
			}
			else	callback(Myvar , $Control);
	    }
		this.doGet = function() {
	      req.open("GET", url, true);
    	  req.send(null);
	    }
	    
	     this.processForm = function (formID) {
	     var tmp = new Array();
		 var n, form;
		 
		 form = document.getElementById(formID);
		 
		 for (n=0;n<form.length;n++)
		      tmp.push(encodeURI(form.elements[n].name) + "=" + encodeURI(form.elements[n].value));
         
		 return tmp.join("&");
	   }
	   
     
       this.doPost = function(formID) {
         var body = this.processForm(formID);
         req.open("POST", url, true);
         req.setRequestHeader("Content-Type", "multipart/form-data");
         req.send(body);
		 }
   }   
