function getToken(str, cnt, del)
{
	var returnValue
	
	//split the str into an array based on the delimeter
	var myArray = str.split(del)
	
	//if the cnt value is greater than the number of array elements return ""
	if(cnt > myArray.length)
	{
		returnValue = "";
	}
	else
	{
		//array positions start at 0, subtract 1 from cnt
		cnt = cnt -1;
		returnValue = myArray[cnt];
	}
	
	return returnValue;
}
