/*********************************************************/
// validateSummary currently used in:
// ../helpdesk.php5 (form's pre-submit error checking)
function validateSummary(myform) {
	// validate the radio buttons
	myOption = -1;
	for (i=0; i < myform.Summary.length; i++) {
		if (myform.Summary[i].checked) {
			myOption = i;
		}
	}
	if ((myform.Feedback.value.length > 0) && (myOption == -1)) {
	//if (myform.Feedback.value.length > 0) {
		myform.Summary[i-1].checked = true; // select Other (last radio) if textarea is filled
		myOption = i-1;
	}
	if (myOption == -1) {
		alert("Please select one of the default problems.");
		return false;
	} else {
		return true; // submits the form
	}
}
/*********************************************************/
// MM_openBrWindow currently used in:
// ../helpdesk.php5 (blurb next to form fields)
function MM_openBrWindow(theURL,winName,features) { //v2.0
	  window.open(theURL,winName,features);
}
/*********************************************************/
