function atrim(str) { return str.replace(/^\s*/,'').replace(/\s*$/,''); }
function setCheck(check_index) {
  var chk;
  if(check_index==1) chk = document.getElementById("memory");								
  else {
    chk = document.getElementById("ssl");	
	var authf = document.getElementById("authorize");
	if(authf) {
	  if(chk.checked) authf.action="#";
	  else authf.action="#";
	}
  }
  if(chk) chk.checked = !chk.checked;
  return true;	
}