

function openNewsReleaseEmailShort(list_id,company_name) {
	dayWindow=window.open('http://cnrp.ccnmatthews.com/client/signup_forms/newsReleaseEmailShort.jsp?list_id='+list_id+'&company_name='+company_name+'', 'newWin1','width=500,height=450,resizable=1')
	dayWindow.focus();
}

function fr_openNewsReleaseEmailShort(list_id,company_name) {
	dayWindow=window.open('http://cnrp.ccnmatthews.com/client/signup_forms/fr_newsReleaseEmailShort.jsp?list_id='+list_id+'&company_name='+company_name+'', 'newWin1','width=500,height=450,resizable=1')
	dayWindow.focus();
}


function checkReleaseEmailShort(form) { 

	var fName = form.firstname.value;
	var lName = form.lastname.value;
	var checkEmail = form.email.value;


	if(fName == ""){
		alert("Please enter your First Name.");
		form.firstname.focus();
	}else if(lName == ""){
		alert("Please enter your Last Name.");
		form.lastname.focus();		

	}else if(checkEmail == ""){
		alert("Please enter your Email Address.");
		form.email.focus();			
	}else if((checkEmail.indexOf('@') < 0) || ((checkEmail.charAt(checkEmail.length-4) != '.') && (checkEmail.charAt(checkEmail.length-3) != '.'))) {		
		alert("You have entered an incorrect email address.  Please try again.");
		form.email.focus();					
	}else{
		form.method="post";
		form.target="_self";
		form.action="/client/cnrp.Controller?action=signup4EmailListShort";
		form.submit();
	}
}