				function gallery_showSlideshow(selected) {
					var width	= 670;
					var height	= 676;
					var page	= "/modules/display.php?display=Slideshow&modulename=Gallery&foreignid=1&start=" + selected;
					var popup	= window.open(page, "_photos", "scrollbars=no,width=" + width + ",height=" + height + ",top=" + (screen.height/2 - height/2) + ",left=" + (screen.width/2 - width/2));
					if(popup) popup.focus();
				}			function mailinglist_subscribe_validate() {
				if (document.getElementById("mailinglist_name").value == '' || document.getElementById("mailinglist_name").value == 'Name') {
					alert('You must enter your name');
				} else if (document.getElementById("mailinglist_email").value == '' || document.getElementById("mailinglist_email").value == 'Email') {
					alert('You must enter your email address');
				} else {
					return true;
				}
				return false;
			}
			function mailinglist_unsubscribe_validate() {
				if (document.getElementById("mailinglist_email").value == '' || document.getElementById("mailinglist_email").value == 'Email') {
					alert('You must enter your email address');
				} else {
					return true;
				}
				return false;
			}			function shoppingcart_checkPriceOption(option, form) {
				var price_checked = false;
				var loop = form.elements.length;
				
				for(i = 0; i < loop; i++) {		  
					if(form.elements[i].name == "priceid[]") {
						if(form.elements[i].type == "checkbox") {
							if(form.elements[i].checked == true) {
								price_checked = true;
							}
						} else if(form.elements[i].type == "select-one") {
							price_checked = true;
						}
					}
				}

				if(!price_checked) {
					if(option == 0) {
						alert("You must have at least one price option selected");
					} else {
						alert("There is no price option selected to add to your cart");
					}
					return false;
				} else {
					return true;
				}
			}

			function shoppingcart_openPhoto(objImage, strCaption, width, height) {
				if(width == 0) { width = 700; }
				if(height == 0) { height = 525; }
				if(strCaption != "") { height = height + 20; }
				var pp = window.open("", "_photos", "scrollbars=no,width=" + width + ",height=" + height + ",top=" + (screen.height/2 - height/2) + ",left=" + (screen.width/2 - width/2));
				var strImg = '<img src="' + objImage + '" align="center">';
				pp.document.writeln("<html><head><title>Plyman</title>");
				pp.document.writeln("<style>body { background-color: #000000; margin: 0px; } </style>");
				pp.document.writeln("</head><body><p align='center' style='font-family: Verdana; font-size: 10px; text-decoration: none; color: #786325;'>");
				pp.document.writeln(strImg + "<br />" + strCaption);
				pp.document.writeln("</p></body></html>");
			}
