/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

$(document).ready(init);

function init(){
    $("#btn_1").click(check1);
    $("#btn_2").click(check2);
    $("#btn_3").click(check3);
    $("#btn_4").click(check4);
    $("#btn_5").click(check5);
    $("#Customer_Account_Agreement").click(unCheck1);
    $("#Customer_Account_Terms_AND_Conditions").click(unCheck2);
    $("#Risk_Factors_and_Disclosure_Statements").click(unCheck3);
    $("#Appointment_of_Broker").click(unCheck4);
    $("#Check_Payment_and_Wiring_Instructions").click(unCheck5);
}

function check1(){
    $("#AGREE_Agreement").val("AGREE");
    $("#Customer_Account_Agreement").attr('checked', true);
}
function unCheck1(){
    if($('#checkBox').attr('checked')==true){
        $("#Customer_Account_Agreement").attr('checked', true);
        $("#AGREE_Agreement").val(" ");
    }
}


function check2(){
    $("#AGREE_Terms").val("AGREE");
    $("#Customer_Account_Terms_AND_Conditions").attr('checked', true);
}
function unCheck2(){
    $("#AGREE_Terms").val("AGREE");
    $("#Customer_Account_Terms_AND_Conditions").attr('checked', true);
}

function check3(){
    $("#AGREE_Risk").val("AGREE");
    $("#Risk_Factors_and_Disclosure_Statements").attr('checked', true);
}
function unCheck3(){
    $("#AGREE_Risk").val("AGREE");
    $("#Risk_Factors_and_Disclosure_Statements").attr('checked', true);
}

function check4(){
    $("#AGREE_Appontment").val("AGREE");
    $("#Appointment_of_Broker").attr('checked', true);
}
function unCheck4(){
    $("#AGREE_Appontment").val("AGREE");
    $("#Appointment_of_Broker").attr('checked', true);
}

function check5(){
    $("#AGREE_Check").val("AGREE");
    $("#Check_Payment_and_Wiring_Instructions").attr('checked', true);
}
function unCheck5(){
    $("#AGREE_Check").val("AGREE");
    $("#Check_Payment_and_Wiring_Instructions").attr('checked', true);
}