function getTextFieldsByClass(whichClass){
	textFields = document.getElementsByTagName("input");	// Textarea someday
	byClass    = new Array();
	j=0;

	for(i=0; textFields[i] != null; i++){
		if(textFields[i].getAttribute("type") == "text" && textFields[i].className.search(whichClass) != -1){
			byClass[j] = textFields[i];
			j++;
		}
	}
	return byClass;
}

function stdAddEvent(elem, trigger, fct){
	alert(elem.getAttribute("name"));
	if(document.all) isIE = true;
	else isIE = false;

	if(!isIE){
		elem.addEventListener(trigger, fct, false);
	} else {
		elem.attachEvent("on"+trigger, fct);
	}
}