//This script works on both FF and IE

function doSubmit(step) {
	if(step=="Reject"){
		if(confirm("Are you sure to suspend page "+ document.trueform.cms_id.value + "?")){
			document.trueform2.step.value=step;
			document.trueform2.submit();
		}
	}else{
		document.trueform2.step.value=step;
		document.trueform2.submit();
	}
}


  function encrypt_key()
  {
	if(document.login.login_id.value=="" || document.login.password.value==""){
		alert("You have entered an invalid login id or password");
		return false;	
	}else{ 
		document.login.step.disabled=true;
		str = MD5(document.login.password.value) + document.login.key.value + document.login.login_id.value;
    		document.cryptedlogin.login_id.value = document.login.login_id.value;
    		document.cryptedlogin.crypted_key.value = MD5(str);
   		document.login.password.value = "";
    		document.login.login_id.value = "";
    		document.cryptedlogin.submit();
    		return false;
	}
  }



