
	function validateEmail(){
		var email = document.email_form.email.value;
		if(!isEmail(email)){
			alert("Please be sure to type a correctly formatted email address.  AOL users, please remove all spaces from your screen name and add '@aol.com' to the end.");
			return false;
		}//end if
		
		return true;
	}//end function
	
	function isEmail(string) { 
		if(string.search(/^.+\@.+\..+$/) != -1)
			return true; 
		else return false; 
	}//end function

	function saveItem(prod_lin, cat, subcat){
		popWindow(("/store/save_item.jsp?pid=" + prod_lin + "&cat=" + cat + "&subcat=" + subcat), 400, 400);

	}//end if

function popWindow(url, p_width, p_height) {
	leftPos=0
	topPos=0
	leftPos = (screen.width-p_width)/2
	topPos = (screen.height-p_height)/2
	
	window.open 
(url,'theWin','width='+p_width+',height='+p_height+',left='+leftPos+',top='+topPos+',resizeable=yes,scrollbars=yes,menubar=yes');
 }//end function
 
 function validateComments(){
 	//make sure the user entered comments
 	var comments = document.comments_form.comments.value;
 	if(comments == ""){
 		alert("Please be sure to type your comments/thoughts about this review or film!");
 		return false;
 	}//end if
 	return true;
 }//end function


