/*
Description:	Restrict the number of elements in a string 
Created by: 	Cindi Vinette
Created on:		12/29/06
*/
function restrictLength(obj,maxLength,restrictType)
{
	var str = obj.value;
	var myArray = str.split(";");
	if(myArray.length > maxLength){
		alert("Maximum number of " + restrictType + " is " + maxLength);
		obj.focus();
	}
	return true;
}
