function isMaxLength(obj)
{
	var max_length = obj.getAttribute ? parseInt(obj.getAttribute('maxlength')) : '';
	
	if ( obj.getAttribute && obj.value.length >= max_length )
		obj.value = obj.value.substring(0, max_length);
}

function popup(name, url, width, height)
{
	var opts = 'status,width=' + width + ',height=' + height + ',scrollbars=yes';
	
	window.open(url, name, opts);
}

function confirmProcess() {
	return confirm(unescape("%C4") + "r du s" + unescape("%E4") + "ker p" + unescape("%E5") + " att du vill forts" + unescape("%E4") + "tta?");
}
