﻿$(document).ready(function() {
    $('#hSupportReference').attr('href', 'javascript:StartPhoneSupport();');
    $('#txtSupportReference').keyup(function(e) {
        if (e.keyCode == 13) {
            if ($('#txtSupportReference').val().length > 0) {
                StartPhoneSupport();
            }
        }
    });
});

function StartPhoneSupport() {
    window.location = 'https://broker.gotoassist.com/servlet/dispatch/ds/queryPost.flow?Portal=rbmph&Template=ds/phoneModeRedemption.tmpl&JavaScript=true&Form=pbQuestionEntry&Question=' + $('#txtSupportReference').val();
}