focusSelect = function() {
/*
	Function to select formfield when field has focus.
	@param arguments:string | Variable Function arguments, Input-Field-Names

*/

	if(arguments.length>0) {
		for(var x=0; x<arguments.length; x++) {
			document.getElementById(arguments[x]).onfocus = function() {
				this.select();
			}
		}
	}
};

changePicture = function() {
/*
	Function to change an image.
	@param arguments:array | Variable Function arguments, [id, normal picture, hover picture];

*/
	if(arguments.length>0) {
		for(var x=0; x<arguments.length; x++) {

			var obj = document.getElementById(arguments[x][0]);

			obj.pic_hover = arguments[x][2];
			obj.onmouseover = function() {
				this.src = this.pic_hover;
			};

			obj.pic_normal = arguments[x][1];
			obj.onmouseout = function() {
				this.src = this.pic_normal;
			};
		}
	}
};
