//VIEW CART BUTTON
paypal1n = new Image(84,20);
paypal1n.src = "images/btn_viewcart_n.jpg";
paypal1r = new Image(84,20);
paypal1r.src = "images/btn_viewcart_r.jpg";

//ADD TO CART BUTTON 1
paypal2n = new Image(84,20);
paypal2n.src = "images/btn_addtocart_n.jpg";
paypal2r = new Image(84,20);
paypal2r.src = "images/btn_addtocart_r.jpg";

//ADD TO CART BUTTON 2
paypal3n = new Image(84,20);
paypal3n.src = "images/btn_addtocart_n.jpg";
paypal3r = new Image(84,20);
paypal3r.src = "images/btn_addtocart_r.jpg";

//ADD TO CART BUTTON 3
paypal4n = new Image(84,20);
paypal4n.src = "images/btn_addtocart_n.jpg";
paypal4r = new Image(84,20);
paypal4r.src = "images/btn_addtocart_r.jpg";



// Script Originally by SSI Developer (www.ssi-developer.net)
// Modified by James Crooke of CJ Website Design (www.cj-design.com)

function protectmail(name, address, link, subject, body) {

document.write("<a href='mailto:" + name + "@" + address + "?subject=" + subject + "&body=" + body + "' class='normallink'>" + link + "</a>");
}

//this javascript code makes sure that important elements are filled out before submission to the database
function Validate () {
   //txt1 refers to the form element id
	//Check for a word to search
	if (document.formBooking.txt1.value==""){
   	//change alert text to correspond to the form elements purpose
		alert("Please enter your name");
		document.formBooking.txt1.focus();
		return false;
	}
	if (document.formBooking.txt2.value==""){
		alert("Please enter theater/organiztion name");
		document.formBooking.txt2.focus();
		return false;
	}
	if (document.formBooking.txt3.value==""){
		alert("Please enter the number of seats");
		document.formBooking.txt3.focus();
		return false;
	}
	if (document.formBooking.txt4.value==""){
		alert("Please enter your address");
		document.formBooking.txt4.focus();
		return false;
	}
	if (document.formBooking.txt5.value==""){
		alert("Please enter your city");
		document.formBooking.txt5.focus();
		return false;
	}
	if (document.formBooking.txt6.value==""){
		alert("Please enter your state");
		document.formBooking.txt6.focus();
		return false;
	}
	if (document.formBooking.txt7.value==""){
		alert("Please enter your ZIP code");
		document.formBooking.txt7.focus();
		return false;
	}
	if (document.formBooking.txt8.value==""){
		alert("Please enter your phone number");
		document.formBooking.txt8.focus();
		return false;
	}
	if (document.formBooking.txt9.value==""){
		alert("Please enter your email address");
		document.formBooking.txt9.focus();
		return false;
	}
	
	return true
}
