function countrySelect3(){
        var x=document.getElementById("contactCountry").selectedIndex;
        var y=document.getElementsByTagName("option")[x].value;
        if(y == "Canada"){
                document.getElementById('showAddress').innerHTML = '<div style="border:1px solid #d7d7d7; padding:5px;"><b>Note: Canadian customers need to provide your full address below in order to determine shipping rates</b><hr color="#d7d7d7">Street Address <font color="red">*</font> <input name="contactAddress1" type="text" id="contactAddress1" value="" size="45"><br>Street Address 2: <input name="contactAddress2" type="text" id="contactAddress2" value="" size="45"><br>City <font color="red">*</font> <input name="contactCity" type="text" id="contactCity" value=""><br>Province <font color="red">*</font> <SELECT style="BACKGROUND-COLOR: #ffffa0" name="contactState" id="contactState"><OPTION value="" selected></OPTION><OPTION value="Alberta">Alberta</OPTION><OPTION value="British Columbia">British Columbia</OPTION><OPTION value="Manitoba">Manitoba</OPTION><OPTION value="New Brunswick">New Brunswick</OPTION><OPTION value="Newfoundland and Labrador">Newfoundland and Labrador</OPTION><OPTION value="Northwest Territories">Northwest Territories</OPTION><OPTION value="Nova Scotia">Nova Scotia</OPTION><OPTION value="Nunavut">Nunavut</OPTION><OPTION value="Ontario">Ontario</OPTION><OPTION value="Prince Edward Island">Prince Edward Island</OPTION><OPTION value="Quebec">Quebec</OPTION><OPTION value="Saskatchewan">Saskatchewan</OPTION><OPTION value="Yukon">Yukon</OPTION></SELECT></div>';
/*
                var oldHTML = document.getElementById('showHawaiiAlaska').innerHTML;
                var newHTML = "<div style='display:none;'>" + oldHTML + "</div>";
                document.getElementById('showHawaiiAlaska').innerHTML = newHTML;
*/
        }
        else if(y == "United States of America"){
                document.getElementById('showAddress').innerHTML = 'Choose a US State <input type="radio" name="contactStateUS" id="Alaska" value="Alaska" onclick="USState()"><b>Alaska</b> <input type="radio" name="contactStateUS" id="Hawaii" value="Hawaii" onclick="USState()"><b>Hawaii</b> <input type="radio" name="contactStateUS" id="Others" value="others" checked="checked" onclick="USState()"><b>Others</b><br><br>';
        }
        else{
                var oldHTML = document.getElementById('showAddress').innerHTML;
                var newHTML = "<div style='display:none;'>" + oldHTML + "</div>";
                document.getElementById('showAddress').innerHTML = newHTML;
/*
                var oldHTML = document.getElementById('showHawaiiAlaska').innerHTML;
                var newHTML = "<div style='display:none;'>" + oldHTML + "</div>";
                document.getElementById('showHawaiiAlaska').innerHTML = newHTML;
*/
        }
}
function USState(){
        var x = document.getElementById("Alaska").checked;
        var y = document.getElementById("Hawaii").checked;

        if(x == true || y == true){
                document.getElementById('showHawaiiAlaska').innerHTML = '<div style="border:1px solid #d7d7d7; padding:5px;"><b>Note:</b> US customers who live in <b>Alaska / Hawaii</b> need to provide your full address below in order to determine shipping rates<hr color="#d7d7d7">Street Address <font color="red">*</font> <input name="contactAddress1US" type="text" id="contactAddress1US" value="" size="45"><br>Street Address 2: <input name="contactAddress2US" type="text" id="contactAddress2US" value="" size="45"><br>City <font color="red">*</font> <input name="contactCityUS" type="text" id="contactCityUS" value=""></div>';
        }
        else{
                var oldHTML = document.getElementById('showHawaiiAlaska').innerHTML;
                var newHTML = "<div style='display:none;'>" + oldHTML + "</div>";
                document.getElementById('showHawaiiAlaska').innerHTML = newHTML;
        }

}
//End functions required for service ticket script

//Previous function not being use
function countrySelect2(){
        var x=document.getElementById("contactCountry").selectedIndex;
        var y=document.getElementsByTagName("option")[x].value;
        if(y == "Canada"){
                document.getElementById('showAddress').innerHTML = '<div style="border:1px solid #d7d7d7; padding:5px;"><b>Note: Canadian customers need to provide your full address below in order to determine shipping rates</b><hr color="#d7d7d7">Street Address <font color="red">*</font> <input name="contactAddress1" type="text" id="contactAddress1" value="" size="45"><br>Street Address 2: <input name="contactAddress2" type="text" id="contactAddress2" value="" size="45"><br>City <font color="red">*</font> <input name="contactCity" type="text" id="contactCity" value=""><br>Province <font color="red">*</font> <SELECT style="BACKGROUND-COLOR: #ffffa0" name="contactState" id="contactState"><OPTION value="" selected></OPTION><OPTION value="Alberta">Alberta</OPTION><OPTION value="British Columbia">British Columbia</OPTION><OPTION value="Manitoba">Manitoba</OPTION><OPTION value="New Brunswick">New Brunswick</OPTION><OPTION value="Newfoundland and Labrador">Newfoundland and Labrador</OPTION><OPTION value="Northwest Territories">Northwest Territories</OPTION><OPTION value="Nova Scotia">Nova Scotia</OPTION><OPTION value="Nunavut">Nunavut</OPTION><OPTION value="Ontario">Ontario</OPTION><OPTION value="Prince Edward Island">Prince Edward Island</OPTION><OPTION value="Quebec">Quebec</OPTION><OPTION value="Saskatchewan">Saskatchewan</OPTION><OPTION value="Yukon">Yukon</OPTION></SELECT></div>';
        }
        else{
                var oldHTML = document.getElementById('showAddress').innerHTML;
                var newHTML = "<div style='display:none;'>" + oldHTML + "</div>";
                document.getElementById('showAddress').innerHTML = newHTML;
        }
}

