
//Function to check the email address on the form is valid.
function checkEmail(form) {
	var email = form.emailadd.value;
	if (email == "")
	{
		alert("You must enter your email address. Please try again...")
		form.emailadd.focus()
		return false
	}
	else if (email.indexOf(" ") > 0 || email.indexOf("@") == -1 || email.indexOf(".") == -1)
	{
		alert("Invalid email address.  Please correct and try again...")
		form.emailadd.value = ""
		form.emailadd.focus()
		return false
	}
}

function subscribe2PopUp(form, strArtistCode) {
	var email = document.forms[form].emailadd.value;

	if ((email != "") && (email.indexOf("enter email") == -1)) {
		var strHyperLink = "/shop/subscribe_showstock.asp?email=" + email + "&artistcode=" + strArtistCode;
		window.open (strHyperLink,"ShowStockSubscribe",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=no,width=650,height=470,left=100,top=0,screenx=100,screeny=0, status=0');
	} else {
		window.alert ('Invalid email address.  Please correct and try again...');
	}
}
//-->
