function fieldFocus(textfield) {
		if (textfield.value==textfield.defaultValue) {textfield.value='';}
		textfield.select();
	}
	
function updateField(textfield) {
		textfield.blur();
		textfield.style.height = 0;
		grow(textfield);
	}
	
function grow(textfield) {
		var newHeight = textfield.scrollHeight;
		var currentHeight = textfield.offsetHeight;
		//var font_size = ExtractNumber(textfield.style.fontSize);
		if (newHeight > currentHeight) {
			textfield.style.height = newHeight+'px';
		}
		if (textfield.type == 'text' || textfield.type == 'password') {textfield.style.height = '';}
	}
	
function maxlength(limit,textfield) {
	if (textfield.value.length == limit) {return false;}
	else {return true;}
}

function activateButton(theButton,theSource) {
	theButton.src=theSource;
	theButton.style.cursor='pointer';
}

function deactivateButton (theButton,theSource) {
	theButton.src=theSource;
	theButton.style.cursor='';
}

function sendRequest(theScript,theData) {
	theScript = theScript + '?' + theData;
	ajax_request(theScript,false);
	return script_response;
}