/*
* @file
* @author Original: N/A
* @author Contributors: German Escallon
* @date Created: N/A
* @date Last Edit: $Date: 2009/10/27 20:16:19 $ by $Author: germane $
* Description: Entry point for MyLES.
******************************************************************************/
var _dvbHstLineCount,_STR_VBHTABID="dvbhTable";function DisplayDvbStatus(){var a='<h3>VBI HISTORY</h3><br /><br /><table border="1" id="'+_STR_VBHTABID+'">  <tr>     <td><b>LINE #</b></td>     <td><b>FIELD ID</b></td>     <td><b>COUNT</b></td>     <td><b>LENGHT</b></td>  </tr></table>';$("main_div").innerHTML=a;var b=function(){var c="/myles?req="+Math.random()+"&q=ECMD+VBH";var d=function(m){if(ParseResponse(m)){for(var j=0;j<_dvbHstLineCount;j++){var l=document.createElement("tr");var h=document.createElement("td");var f=document.createElement("td");var g=document.createElement("td");var k=document.createElement("td");h.innerHTML=setting["ecmd_vbh_lineNumber"+j];f.innerHTML=setting["ecmd_vbh_fid"+j];g.innerHTML=setting["ecmd_vbh_count"+j];k.innerHTML=setting["ecmd_vbh_len"+j];h.align="center";f.align="center";g.align="center";k.align="center";l.appendChild(h);l.appendChild(f);l.appendChild(g);l.appendChild(k);$(_STR_VBHTABID).appendChild(l)}}else{if(_debug){console.log("VBI History Parse ERROR")}}};var e={success:d,failure:function(f){if(_debug){console.log("AJAX Error:  VBI HISTORY Could not be retrieved")}}};_dvbHstLineCount=0;_yuiConnect.asyncRequest("GET",c,e,null)};_yuiEvent.onAvailable(_STR_VBHTABID,b,this)}CreateMetaTagElement("dvbStatus");