function regSubmit(){
	var current=$('#quick-reg-current').val();
	var fName=$('#cons_first_name').val();
	var lName=$('#cons_last_name').val();
	var eMail=$('#cons_email').val();
	var gender=$('#cons_gender').val();
	var dobM=$('#cons_dob_m').val();
	var dobD=$('#cons_dob_d').val();
	var dobY=$('#cons_dob_y').val();
	var hbcu=$('#cons_hbcu').val();
	var firstVisit=$('#cons_first_visit').val();
	var intAdvo=$('#cons_int_advo').is(':checked');
	var intVol=$('#cons_int_vol').is(':checked');
	var intOther=$('#cons_int_other').is(':checked');
	var intOtherInput=$('#cons_int_otherinput').val();
	var denySubmit=$('#denySubmit').val();
	if(current=='1'){
		hideAllErrors();
		if(fName==''){
			fNameError();
			$('#cons_first_name').focus();
			if(lName=='') {
				lNameError();
				if(eMail.indexOf('@')==-1||eMail.indexOf('.')==-1){
					eMailError();
				}
			}
			if(eMail.indexOf('@')==-1||eMail.indexOf('.')==-1){
				eMailError();
			}
		}
		else if(lName==''){
			lNameError();
			$('#cons_last_name').focus();
			if(eMail.indexOf('@')==-1||eMail.indexOf('.')==-1){
				eMailError();
			}
		}
		else if(eMail.indexOf('@')==-1||eMail.indexOf('.')==-1){
			eMailError();
			$('#cons_email').focus();
		}
		else{
			if(denySubmit==''){
				$('#quick-reg-success').html('<iframe src="http://give.uncf.org/site/PageServer?pagename=quickReg&printer_friendly=1&fName='+fName+'&lName='+lName+'&eMail='+eMail+'&current=1" scrolling="no" frameborder="0" height="1" width="1"></iframe>');
			}
			$('#error-msg').hide();
			$('#quick-reg-step1').hide();
			$('#quick-reg-step2').show();
			$('#quick-reg-step2').animate({opacity: 1},500);
			$('#ACTION_SUBMIT_SURVEY_RESPONSE').val('Go');
			$('#quick-reg-current').val('2');
		}
	}
	else if(current=='2'){
		if(denySubmit==''){
			if(denySubmit==''){
				$('#quick-reg-success').append('<iframe src="http://give.uncf.org/site/PageServer?pagename=quickReg&printer_friendly=1&fName='+fName+'&lName='+lName+'&eMail='+eMail+'&gender='+gender+'&dobM='+dobM+'&dobD='+dobD+'&dobY='+dobY+'&hbcu='+hbcu+'&firstVisit='+firstVisit+'&current=2" scrolling="no" frameborder="0" height="1" width="1"></iframe>');
			}
		}
		$('#quick-reg-step2').hide();
		$('#quick-reg-step3').show();
		$('#quick-reg-step3').animate({opacity: 1},500);
		$('#quick-reg-current').val('3');
	}
	else if(current=='3'){
		if(denySubmit==''){
			$('#quick-reg-success').append('<iframe src="http://give.uncf.org/site/PageServer?pagename=quickReg&printer_friendly=1&fName='+fName+'&lName='+lName+'&eMail='+eMail+'&intAdvo='+intAdvo+'&intVol='+intVol+'&intOther='+intOther+'&intOtherInput='+intOtherInput+'&current=3" scrolling="no" frameborder="0" height="1" width="1"></iframe>');
		}
		$('#quick-reg-step3').hide();
		$('#ACTION_SUBMIT_SURVEY_RESPONSE').hide();
		$('#quick-reg-thank-you').show();
		$('#quick-reg-thank-you').animate({opacity: 1},500);
	}
	return false;
}
function fNameError(){
	$('#error-msg-1').html('* First name is required.');
	$('#error-msg-1').show();
	$('#cons_first_name').css({
		'background':'#FFA6A5',
		'border':'1px solid #EF0808'
	});
}
function lNameError(){
	$('#error-msg-2').html('* Last name is required.');
	$('#error-msg-2').show();
	$('#cons_last_name').css({
		'background':'#FFA6A5',
		'border':'1px solid #EF0808'
	});
}
function eMailError(){
	if($('#cons_email').val()==''){
		$('#error-msg-3').html('* E-Mail is required.');
	}
	else{
		$('#error-msg-3').html('* Invalid E-Mail.');	
	}
	$('#error-msg-3').show();
	$('#cons_email').css({
		'background':'#FFA6A5',
		'border':'1px solid #EF0808'
	});
}
function hideAllErrors(){
	$('#error-msg-1').hide();
	$('#error-msg-2').hide();
	$('#error-msg-3').hide();
	$('#cons_first_name').css({
		'background':'#ffffff',
		'border':'1px solid #c4c4c4'
	});
	$('#cons_last_name').css({
		'background':'#ffffff',
		'border':'1px solid #c4c4c4'
	});
	$('#cons_email').css({
		'background':'#ffffff',
		'border':'1px solid #c4c4c4'
	});
}
function regShowOtherInterest(){
	if($('#cons_int_other').is(':checked')){
		$('#interests-other').show();
		$('#cons_int_otherinput').focus();
	}
	else{
		$('#interests-other').hide();
	}
}