var selWS;
function sendIt(n,p) { 
	if (n=="" || n.substring(0,12)=="Please enter" ) {
		alert('Please enter your name');
		return;
	}
	if (p=="" || p.substring(0,7)=="contact" ) {
		p="(no phone number supplied)";
	}
  var tr1 = selWS.parentNode; 
	var ix=0;
	var x = tr1.childNodes[0]; 
	if (x.nodeType=='3') ix=1;
	var x = tr1.childNodes[ix]; 
	var p0=x.childNodes[0].text; 	 												//text in address anchor 
	if (!p0) { p0=x.childNodes[0].childNodes[0].data; }   //pre IE8 hack for IE
	x = tr1.childNodes[ix+1];
	var p1=x.childNodes[0].data;
	x = tr1.childNodes[ix+2];
	var p2=x.childNodes[0].data;
	x = tr1.childNodes[ix+3];
	var p3=x.childNodes[0].data;
	var body = 'Ann, I would like to enroll in the following workshop:%0A%0A'
	var bodyVarText = n+'%0A'+p+'%0A'+p0+'%0A'+p1+' '+p2+'%0A'+p3;
	body+=bodyVarText;

	window.location="mailto:ann@yogaseva.com?subject=Workshop enrollment form&body="+body;
	document.getElementById('lightBox').style.visibility='hidden';
	document.getElementById('sendForm').style.visibility='hidden';
}

function clear_textbox(a) { 
	var dId=document.getElementById(a) ; 
	dId.value = "";
}

function cancelIt () {
	document.getElementById('lightBox').style.visibility='hidden';
	document.getElementById('sendForm').style.visibility='hidden';
	document.forms[0].yourname.value = "Please enter your name here";
	document.forms[0].phone.value = "contact number";
}

function pop(a) {
 selWS = a;
 document.getElementById('lightBox').style.visibility='visible';
 document.getElementById('sendForm').style.visibility='visible';
}