function confirmation_remove() {
	var answer = confirm("Are you sure to remove this job?");

	if (answer){
		return true;
	}
	else{
		return false;
	}
}

function cat_remove() {
	var answer = confirm("Are you sure to remove this category?");

	if (answer){
		return true;
	}
	else{
		return false;
	}
}

function select(id) {
	document.getElementById(id).checked = !document.getElementById(id).checked;
}

function clean(el, val)
{
	if (el.value == val)
		 return '';
	return el.value;
}

function Trim(s) {
	var maxlength = 254;
	if (s.value.length > maxlength) 
		s.value = s.value.substring(0, maxlength);

	alert(s.value);
} 
