function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Jim MontgomeryJim Montgomery 

check for checkbox not checked onclick javascript

I have this onclick javascript invoked and in the part that is commented out, need to check for the "send_tax_migration_email__c is not checked..
Tried a bunch of stuff, but nothing is working.

<apex:page standardController="Apttus_Proposal__Proposal__c">
<script src="/soap/ajax/10.0/connection.js"> </script >
<script src="/soap/ajax/10.0/apex.js"> </script >
<script type="text/javascript">
window.onload=init() function init() { var p = new sforce.SObject('Apttus_Proposal__Proposal__c'); p.Id = "{!Apttus_Proposal__Proposal__c.Id}"; if("{!Apttus_Proposal__Proposal__c.Has_SureTax_text__c}" =='True' && ("{!apttus_proposal__proposal__c.SureTax_Overage_Percentage__c}" =='' ||"{!apttus_proposal__proposal__c.SureTax_Overage_Percentage__c}" == null)) { alert("You must enter a SureTax Overage Percentage"); } else
//if("{!apttus_proposal__proposal__c.Has_tax_Migration_Products__c}">0 && "{!apttus_proposal__proposal__c.Send_Tax_Migration_Email__c}" !=='True')
//alert("You must send the Tax Migration email")
{ p.apttus_proposal__approval_stage__c = "Submitted to COP";
p.SAP_Order_Processing_Stage__c = "Submitted to COP";
p.Proposal_Submitted_By__c = sforce.connection.getUserInfo().userId; }
result = sforce.connection.update([p]);
location.href=""+p.Id; };