function verifyFocus(objElement)
{
	if (objElement) {
		try {
			objElement.focus();
		} catch(oException) {
			//nothing
		}//try
	}//if
}//verifyFocus

function verifyMessage(strWhere, strType, strDisplay)
{
	switch (strType) {
		case 'noblank':
			if (strDisplay+'' == '') {
				if (strWhere == 'survey')
					strDisplay = "You must answer all required questions";
				else
					strDisplay = "You must answer all required fields";
			} else
				strDisplay = "The following field cannot be left blank "+": '"+ strDisplay +"'";
			break;
		case 'notValidNumber':
			if (strDisplay+'' == '')
				strDisplay = "Number";
			strDisplay = "The following field is not valid "+": '"+ strDisplay +"'";
			break;
		case 'notValidDate':
			if (strDisplay+'' == '')
				strDisplay = "Date";
			strDisplay = "The following field is not valid "+": '"+ strDisplay +"'";
			break;
		case 'notValid':
			if (strDisplay+'' == '') {
				strDisplay = "The following field is not valid";
			} else {
				strDisplay = "The following field is not valid "+": '"+ strDisplay +"'";
			}
			break;
		case 'pref':
			if (strDisplay == 'number>zero')
				strDisplay = "You can only use numbers greater than zero";
			else if (strDisplay == 'missing>zero')
				strDisplay = "You are missing a number greater than zero";
			else if (strDisplay == 'missedsequencenumber')
				strDisplay = "You have missed a sequence number";
			else if (strDisplay == 'samenumberonce')
				strDisplay = "The same number may only appear once";
			else
				strDisplay = "The following field is not valid "+": 'Preference'";
			break;
		case 'notValidImage':
			if (strDisplay+'' == '') { strDisplay = "Image"; }
			strDisplay = "The file selected is not a valid image type";
			break;
	}//switch
	alert(strDisplay);
}//verifyMessage
