<!--
function HideContent(d) {
if(d.length < 1) { return; }
document.getElementById(d).style.display = "none";
}
function ShowContent(d) {
if(d.length < 1) { return; }
document.getElementById(d).style.display = "block";

}

function setOpacity(domId, val) {
	obj = document.getElementById(domId);
	obj.style.MozOpacity = val;
	obj.style.opacity = val/10;
	obj.style.filter = 'alpha(opacity=' + val*10 + ')';
};

function appear(domId){
obj = document.getElementById(domId); //Get the element

 if(obj.style.display != "none") return false; //Return if it is already being displayed

 obj.style.display = ''; //Un-hide the object before its animation
 var alpha = 0; //Set the initial value of alpha to 0 (invisible)

 function a(){ //Internal function
  alpha++; //Increment alpha

  setOpacity(domId, alpha); //Set the opacity of our element to the specified alpha
  if(alpha < 11)setTimeout(a, 100);

/*Till alpha is 10, keep calling the
a() function after 100 milliseconds */
}
setTimeout(a, 100); //This is where we call the a() function for the first time

};

//-->

function fade(domId){
obj = document.getElementById(domId); //Get the Element

 if(obj.style.display == "none") return false; //Return false if the element is already hidden

 var alpha = 10; //Set the initial value of alpha to 10 (Opaque)
 function f(){ //Internal function

  alpha--; //Decrement the alpha value
  setOpacity(domId, alpha); //Set the opacity of our element to the specified alpha

  if(alpha > -1){ //If alpha is still bigger than -1 then..
   setTimeout(f, 100); //..then call the function again after 100 milliseconds

  }else{ //otherwise..
   obj.style.display = 'none'; //..otherwise now that we cant see the element anyways, hide it

  }
}
setTimeout(f, 100); //This is where we call the f() function for the first time

};

function appear2(domId){
obj = document.getElementById(domId); //Get the element

 if(obj.style.display != "none") fade(domId); //Return if it is already being displayed

 obj.style.display = ''; //Un-hide the object before its animation
 var alpha = 0; //Set the initial value of alpha to 0 (invisible)

 function a(){ //Internal function
  alpha++; //Increment alpha

  setOpacity(domId, alpha); //Set the opacity of our element to the specified alpha
  if(alpha < 11)setTimeout(a, 100);

/*Till alpha is 10, keep calling the
a() function after 100 milliseconds */
}
setTimeout(a, 100); //This is where we call the a() function for the first time

};

function getURL(Url, elementid) {	
document.getElementById(elementid).innerHTML = "<img src='modules/Venues/images/loadgif.gif' border='0'>";
  var status = AjaxRequest.get(
    {
	  
	  'url':''+ Url
	  ,'onSuccess':function(req){ document.getElementById(elementid).innerHTML = req.responseText; }
    }
  );
  return status;
}

function submitForm(theform, elementid) {
document.getElementById(elementid).innerHTML = "<img src='modules/Venues/images/loadgif.gif' border='0'>";
  var status = AjaxRequest.submit(
    theform
    ,{
      'onSuccess':function(req){ document.getElementById(elementid).innerHTML = req.responseText; }
    }
  );
  return status;
}


<!--
var windowWidth = 450;
var windowHeight = 350;
var windowLeft = (screen.width - windowWidth) / 2;
var windowTop = (screen.height - windowHeight) / 2;
var size = 'height=' + windowHeight + ', width=' + windowWidth + ', top=' + windowTop + ', left=' + windowLeft + ', resizable=no';

function loadMyAdmin(url) {
	var status = window.open(url, '', size);
	if (!status) {
		alert('Please disable your popup blocker or click the Open New Administration Window link');
	}
}

//-->
