function checkLength(that, max){
	if(that.value.length > max)
	that.value = that.value.substr(0,max);
}

function $(thatId) {
	return document.getElementById(thatId);
}

function returnurlx(that) {
	$('returnurl').disabled = that.checked ? false : true;
	if (that.checked) 
		$('returnurl').focus();
}