
window.onload=window_onresize;window.onresize=window_onresize;function window_onresize()
{var bottomEdge;var tdMainContent=$get("tdBanner");var HeightToSubtract=tdMainContent.offsetHeight;var bottomEdge;if(typeof(window.innerHeight)=="number")
{bottomEdge=window.innerHeight;$get("mainDiv").style.height=(bottomEdge-HeightToSubtract-50)+"px";bottomEdge=innerHeight;document.getElementById("mainTable").style.height=(bottomEdge-HeightToSubtract-35)+"px";}else if(document.documentElement&&document.documentElement.clientHeight)
{bottomEdge=document.documentElement.clientHeight;$get("mainDiv").style.height=(bottomEdge-HeightToSubtract-35)+"px";bottomEdge=document.documentElement.clientHeight;var mainTb=$get("masterTable");if(mainTb!=null)
mainTb.style.height=(bottomEdge-HeightToSubtract-35)+"px";}else if(document.body&&(document.body.clientWidth||document.body.clientHeight))
{bottomEdge=document.body.offsetHeight;if((bottomEdge-HeightToSubtract-50)>50)
{$get("mainDiv").style.height=(bottomEdge-HeightToSubtract-50)+"px";}}}
function EndRequestHandler(sender,args)
{if(args.get_error()&&args.get_response().get_timedOut())
{if(typeof(HandleTimeout)!="undefined")
HandleTimeout();else
alert('The request has taken to long.');args.set_errorHandled(true);}
if(typeof(ProcessEndRequest)!="undefined")
{ProcessEndRequest();}
if(typeof(SetupTrainingWheels)!="undefined")
{SetupTrainingWheels();}
if(typeof(SetControlFocus)!="undefined")
{SetControlFocus();}
if(typeof(ShouldShowPopup)!="undefined")
{ShouldShowPopup();}
window_onresize();}
function SetFocusToControl(controlId)
{var e=$get(controlId);if(e==null)
return;e.focus();}
function CopyDropdownListSelection(dropListId,hiddenBoxId)
{var eDropList=$get(dropListId);var eHiddenBox=$get(hiddenBoxId);if(eDropList==null)
return;if(eHiddenBox==null)
return;eHiddenBox.value=eDropList.selectedIndex;}
