// JavaScript Document
<!--
function checkCode() {
    var formCode = document.rsvpForm.inviteCode;

	
	var myCAction = '10_rsvp-online-2.asp?id=12';
	var Cmsg = "";
       		if (formCode.value.length <= 10 || formCode.value == "")
			{
			var Cmsg = 'You have not correctly entered your invitation code\nPlease re-enter your code and try again';
			alert(Cmsg);
			formCode.focus();
			formCode.select();
			return false;     
			}
			
			
			document.rsvpForm.action = myCAction;
			return true;
			
}
//-->