<!--
function trim_field_value(form_name, field){
	var re = /( )*/;
	var the_form = document.forms[form_name];
	var the_value =  eval('the_form.' + field + '.value');
	var trim_value = the_value.replace(re, "");

	return trim_value;
}

var basicColor = "#00244A";
var mouseOverColor = "#0D5787";

function changeColor(layerName, colorValue){
  if (document.all) {
        layerName.style.backgroundColor=colorValue;
  } else {
        layerName.bgColor=colorValue;
        return false;
  }
}

function confirmDelete(){
	if (confirm('Are you sure you want to delete this item?')){
		return true;
	} else {
		return false;
	}
}

function checkFormsForm(){
	var obj_form = document.forms['addForm'];

	trim_name = trim_field_value('addForm', 'f_doc');	
	if (!trim_name){
		alert("Plese enter document");
		obj_form.f_doc.focus();
		return false;
	}
	
}

//-->