function auto_save(form_name){
//on submit the page will be reloaded and the counter restarted
setTimeout('form_name.submit()',30000)
}


function check_saved(form_name) {
   if(form_name){
      if(form_name.changed.value == '1'){
         var save_it = confirm("You have made changes to this page that have not been saved. Would you like to save your changes?");
	 if (save_it == true){
	 	form_name.submit();
		alert("Changes saved.");
	 }
      }
   }
   return true;
}
