/**
 * @author Cale
 */

function doCount(el) {
	var f = Dom.get(el);
	var count=0, str="";
	for (var i = 1; i<=10; i++) {
		str=Dom.get("name"+i).value;
		str = str.trim();
		if (str.length>1) {count++;}
	}
	if (count==0) {count=1;}
	count--;
	Dom.get("tickets").selectedIndex = count;
}

String.prototype.trim = function() {
	return this.replace(/^\s+|\s+$/g,"");
}
String.prototype.ltrim = function() {
	return this.replace(/^\s+/,"");
}
String.prototype.rtrim = function() {
	return this.replace(/\s+$/,"");
}


