function disableForm(theform) {
	if (document.all || document.getElementById) {
		for (i = 0; i < theform.length; i++) {
			var tempobj = theform.elements[i];
				if (tempobj.type.toLowerCase() == "submit"){
				tempobj.disabled = true;
				}
		}
	}
}

function disableSubmit(){
	document.edititem.submit.disabled=true;
}

function go_there(okloc, cancelloc)
{
 var where_to= confirm("Do you really want to delete this item?");
 if (where_to== true)
 {
   window.location=okloc;
 }
 else if(cancelloc.length > 0)
 {
  window.location=cancelloc;
  }
}
