// Validate javascript

/** Check Optin in 
*/
function checkOptinBeforeSubmit(){
    var optinElement = document.appForm.elements['appData[optin]'];
 
    var val=optinElement.checked;
 
    if (!val) {
    	  alert("You must select the checkbox indicating that you accept the Terms and Conditions associated with this application.");
          return false;
    } else {
          return true;
    }
}