On occasion there is need to get the display value of reference variable.
There are two ways to accomplish this first is make the call back to the server and query the table.
The second and more efficient way is to use get display box function of g_form.
var refFieldDispVal = g_form.getDisplayBox('the reference field').value;
Thanks to Mark Stanger for this pointer.