function subscribeNewsletter() {
	url=document.location.href.substring(0, document.location.href.indexOf('/',7))+'/index.php';
	request={'url': url,'ajax': '140_subscribeNewsletter','indicator': 'subscribeIndicator'};
	data={'email': document.subscribeForm.email.value};
	if(document.subscribeForm.email.value)
		sendRequest(request,data);
}


function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function ToggleDisplay(p_DivID) {
	var obj;
	if ((obj=MM_findObj(p_DivID))!=null) {
		if (obj.style) {
			obj.style.display = (obj.style.display=='none') ? 'block':'none';
		} else {
			obj.visibility = (obj.visibility=='hide') ? 'show':'hide';
		}
	}
}

function ShowDiv(p_DivID) {
	var obj;
	if ((obj=MM_findObj(p_DivID))!=null) {
		if (obj.style) {
			obj.style.display = 'block';
		} else {
			obj.visibility = 'show';
		}
	}
}

function HideDiv(p_DivID) {
	var obj;
	if ((obj=MM_findObj(p_DivID))!=null) {
		if (obj.style) {
			obj.style.display = 'none';
		} else {
			obj.visibility = 'hide';
		}
	}
}


function theatre140_getEmail(id,email) {
	url=document.location.href.substring(0,document.location.href.indexOf('/',7))+'/index.php';
	request={'url': url,'ajax': 'theatre140_getEmail'};
	data={'target': 'span', 'id': id, 'email':email};
	sendRequest(request,data);
}

