function ResidentYes() { displayEleById("investmentsQn"); hideResults(); } function ResidentNo() { hideInvestmentsQn(); hideLowestTaxQn(); hideCombinedTaxQn(); displayResults("28%", "msgInvestIndividual"); } function heldbyindividuals() { unselectRadioBtn("income"); hideCombinedTaxQn(); displayEleById("lowestTaxQn"); hideResults(); } function heldbyTrust() { hideLowestTaxQn(); hideCombinedTaxQn(); displayResults("","msgChoose"); } function heldbyCompany() { hideLowestTaxQn(); hideCombinedTaxQn(); displayResults("0%","msgInvestCompany"); } function income14korlessYes() { unselectRadioBtn("combinedincome"); var radioObj = document.getElementsByName("investments"); if (radioObj[0].checked) /* "individual option selected" */ { displayResults("10.5%", "msgInvestIndividual"); } else { displayResults("10.5%", "msgInvestJointly"); } } function income14korlessNo() { unselectRadioBtn("combinedincome"); displayEleById("combinedTaxQn"); hideResults(); } function income48korlessYes() { var radioObj = document.getElementsByName("investments"); if (radioObj[0].checked) /* "individual option selected" */ { displayResults("17.5%", "msgInvestIndividual"); } else { displayResults("17.5%", "msgInvestJointly"); } } function income48korlessNo() { var radioObj = document.getElementsByName("investments"); if (radioObj[0].checked) /* "individual option selected" */ { displayResults("28%", "msgInvestIndividual"); } else { displayResults("28%", "msgInvestJointly"); } } function incomeUnsure() { hideCombinedTaxQn(); var radioObj = document.getElementsByName("investments"); if (radioObj[0].checked) /* "individual option selected" */ { displayResults("","msgUnsure"); } else { displayResults("","msgUnsure", "msgInvestJointly"); } } function cIncomeUnsure() { var radioObjInv = document.getElementsByName("investments"); if (radioObjInv[0].checked) /* "individual option selected" */ { displayResults("","msgUnsure"); } else { displayResults("","msgUnsure", "msgInvestJointly"); } } function hideInvestmentsQn() { hideEleById("investmentsQn"); unselectRadioBtn("investments"); } function hideLowestTaxQn() { hideEleById("lowestTaxQn"); unselectRadioBtn("income"); } function hideCombinedTaxQn() { hideEleById("combinedTaxQn"); unselectRadioBtn("combinedincome"); } function displayResults(pir, msg1, msg2) { var pirs=new Array("0%","10.5%","17.5%","28%"); var msgs=new Array("msgChoose","msgTBAHelen","msgToDo", "msgInvestIndividual", "msgInvestJointly", "msgInvestCompany"); hideResults(); displayEleById("resultSection"); hideEleById("msgPIR"); for (var i=0;i