//This function will validate the Institution field where it will prompt the user to provide
//value for the "If Institution is not found on the above list, please type name here." field
//if the the user select the value "Other" from the "Most Recent Institution Attended" field.

function ValidateInstitution() 
{
	if (document.frmSubmit.CURRENT_PAGE.value == "01")
	{
		if (document.frmSubmit.CUSR_CP_MOST_RECENT_INST.selectedIndex == -1)
		{
			runForm('FWD');
		}
		else
		{
			//alert(document.frmSubmit.CUSR_CP_MOST_RECENT_INST.options[document.frmSubmit.CUSR_CP_MOST_RECENT_INST.selectedIndex].text);
			if (document.frmSubmit.CUSR_CP_MOST_RECENT_INST.options[document.frmSubmit.CUSR_CP_MOST_RECENT_INST.selectedIndex].text == "Other")
			{
				if(screenForm.validateForm()== false) 
				{
					if (document.frmSubmit.CUSR_INSTITUTION_NOT_LISTED.value == "")
					{
						alert('Please enter institution name in the open text box below the field labeled "Institution."');
					}
					 return false;
				}
				else
				{
					if (document.frmSubmit.CUSR_INSTITUTION_NOT_LISTED.value == "")
					{
						alert('Please enter institution name in the open text box below the field labeled "Institution."');
					}
					else
					{
						runForm('FWD');
					}
				}
			}
			else
			{
				runForm('FWD');
			}
		}
	}
	else
	{
		runForm('FWD');
	}	
	
}