function checkElements(){	var checkNameBool = checkName();	var checkMailBool = checkMail();	//var checkAppBool = checkApp();	var checkOSVersionBool = checkOSVersion();	var checkFeedbackTypeBool = checkFeedbackType();	var checkTitleBool = checkTitle();	var checkCommentsBool = checkComments();	if (checkMailBool == false || checkNameBool == false || checkTitleBool == false || checkOSVersionBool == false || checkFeedbackTypeBool == false || checkCommentsBool == false)	{		return false;	}	return true;}function checkMail(){	var x = document.getElementById('e-mail').value;	var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;	// If the email isn't in the right form, display an error message'	if (!filter.test(x)) {		document.getElementById('incorrectMail').innerHTML = "<div class=\"errorDiv\"><img src=\"../images/tinyalert.png\" alt=\"Please enter a valid email address in the form user@host.com\"></div>";		return false;	}	document.getElementById('incorrectMail').innerHTML = '';	return true;}function checkName(){	var x = document.getElementById('username').value;		// If the value of the name field hasn't changed, display an error	if (x == '' || x == 'Your Name')	{		document.getElementById('incorrectName').innerHTML = "<div class=\"errorDiv\"><img src=\"../images/tinyalert.png\" alt=\"Please enter a name\"></div>";		return false;	}	document.getElementById('incorrectName').innerHTML = '';	return true;}function checkTitle(){	var x = document.getElementById('title').value;		// If the value of the title field hasn't changed, display an error	if (x == 'Feedback Title' || x == '')	{		document.getElementById('incorrectTitle').innerHTML = "<div class=\"errorDiv\"><img src=\"../images/tinyalert.png\" alt=\"Please enter a subject\"></div>";		return false;	}	document.getElementById('incorrectTitle').innerHTML = '';	return true;}/*function checkApp(){	var pullDown = document.getElementById('applications');	if (pullDown.value == "none")	{		document.getElementById('incorrectApplication').innerHTML = "<div class=\"errorDiv\"><img src=\"../images/tinyalert.png\" alt=\"Please select an application\"></div>"; 		return false;	}	document.getElementById('incorrectApplication').innerHTML = '';	return true;}*/function checkComments(){	var x = document.getElementById('Comments').value;	if (x == '')	{		document.getElementById('incorrectComments').innerHTML = "<div class=\"errorDiv\"><img src=\"../images/tinyalert.png\" alt=\"Please enter a comment\"></div>";		return false;	}	document.getElementById('incorrectComments').innerHTML = '';	return true;}function checkOSVersion() { 	var errorText = "Please select an OS version"; 	var pullDown = document.getElementById('OSVersion');	// If the title or divider are selected, print an error 	if (pullDown.value == "none") 	{		document.getElementById('incorrectOSversion').innerHTML = "<div class=\"errorDiv\"><img src=\"../images/tinyalert.png\" alt=\"" + errorText + "\"></div>"; 		return false; 	}	document.getElementById('incorrectOSversion').innerHTML = ''; 	return true; } function checkFeedbackType() { 	var pullDown = document.getElementById('Type');	// If the title or divider are selected, print an error 	if (pullDown.value == "none") 	{ 		document.getElementById('incorrectFeedbackType').innerHTML = "<div class=\"errorDiv\"><img src=\"../images/tinyalert.png\" alt=\"Please select a query type\"></div>"; 		return false; 	} 	document.getElementById('incorrectFeedbackType').innerHTML = ''; 		return true; }