
function cancel_form(n) {
  for (i = 0; i < n.elements.length; i++) {
    if ( n.elements[i].type == 'text' || n.elements[i].type == 'textarea' ) {
        n.elements[i].value = '';
    }
  } 
  return true;
}

function close_form(n) {
  cancel_form(n);
  if ( window.name == 'popup_xmail' ) {
	 n.h_cancel.value = 1;
  }
  return true;
}

