function suckerfish(type, tag, parentId) {
		var sfEls = (parentId==null) ? document.getElementsByTagName(tag) : document.getElementById(parentId).getElementsByTagName(tag);
		type(sfEls);
}


sfFocus = function(sfEls) {
	for (var i=0; i<sfEls.length; i++) {
	if (sfEls[i].type != 'button' && sfEls[i].type != 'checkbox' && sfEls[i].type != 'radio' && sfEls[i].type != 'submit') {

  		sfEls[i].onfocus=function() {
//  			this.className+=" sffocus";
			this.style.backgroundColor = "#ffc";
  		}
  		sfEls[i].onblur=function() {
			this.style.backgroundColor = "white";
//  			this.className = ''; //this.className.replace(new RegExp(" sffocus\\b"), "");
  		}
  	}
	}
}


sfSubmit = function(sfEls) {
	for (var i=0; i<sfEls.length; i++) {
		if (sfEls[i].type == 'button' || sfEls[i].type == 'submit') {
  			sfEls[i].onclick=function() {
//				this.form.submit();
// 				this.value = "wird verarbeitet...";
//				this.disabled = true;
  			}
  		}
	}

}


