function check_submission() 
{
	check = false;
	for (i=0;i<document.forms[0].find_site.length;i++) {
		if (document.forms[0].find_site[i].checked == true)
			check = true;
	}
	if (check == false) {
		alert('Please answer all the mandatory questions');
		return false;
	}
	
	check = false;
	for (i=0;i<document.forms[0].access.length;i++) {
		if (document.forms[0].access[i].checked == true)
			check = true;
	}
	if (check == false) {
		alert('Please answer all the mandatory questions');
		return false;
	}
	
	check = false;
	for (i=0;i<document.forms[0].nav_site.length;i++) {
		if (document.forms[0].nav_site[i].checked == true)
			check = true;
	}
	if (check == false) {
		alert('Please answer all the mandatory questions');
		return false;
	}
	
	check = false;
	for (i=0;i<document.forms[0].detail_cont.length;i++) {
		if (document.forms[0].detail_cont[i].checked == true)
			check = true;
	}
	if (check == false) {
		alert('Please answer all the mandatory questions');
		return false;
	}
	
	check = false;
	for (i=0;i<document.forms[0].ace_lev.length;i++) {
		if (document.forms[0].ace_lev[i].checked == true)
			check = true;
	}
	if (check == false) {
		alert('Please answer all the mandatory questions');
		return false;
	}
	
	if (document.forms[0].how_find.value == '') {
		alert('Please answer all the mandatory questions');
		return false;
	}
	
	if (document.forms[0].info_detail.value == '') {
		alert('Please answer all the mandatory questions');
		return false;
	}
	
	if (document.forms[0].site_inter.value == '') {
		alert('Please answer all the mandatory questions');
		return false;
	}
	
	if (document.forms[0].site_disinter.value == '') {
		alert('Please answer all the mandatory questions');
		return false;
	}

	if (document.forms[0].e_mail.value != '') {
		if (!check_email(document.forms[0].e_mail.value)) {
			alert('Your email is wrong');
			return false;
		}
	}
}

function check_email(e_mail) 
{
	var goodEmail = e_mail.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.org)|(\..{2,2}))$)\b/gi);
	if (!goodEmail) {
		return false;
	}
	else {
		return true;
	}
}
