function limitinput(evt, strList, bAllow) {
	/*
	Limits the input to strList. If bAllow is true, then 
	only allow what is in strList. If bAllow is false, 
	then do not allow what is in strList.
	*/ 
	
	
	var charcode = evt.keyCode; 
	if (charcode==0) { 
		charcode = evt.which; 
	} 
	
	var strChar = String.fromCharCode(charcode); 
	/*controlArray holds the ASCII codes for valid 
	control commands (BS, CR, LF, etc)*/ 
	var controlArray = Array(0, 8, 9, 10, 13, 27); 
	var intOut = 0;
	
	if (bAllow==true) { 
		/* Valid */
		if (charcode==8 || 
			charcode==9 || 
			charcode==37 || 
			charcode==39 || 
			(strList.indexOf(strChar)!=-1)) {
			
		 	return true; 
			
		} else { 
		
			return false; 
		} 
		
	} else { 
	
		if (charcode==8 || 
			charcode==9 || 
			charcode==37 || 
			charcode==39 || 
			(strList.indexOf(strChar)==-1)) { 
		
			return true; 
			
		}  else { 
		
			return false; 
			
		} 
	} 
}
