/* Copyright 2009: Thomson Reuters Global Resources. All Rights Reserved. Proprietary and Confidential information of TRGR. Disclosure, Use or Reproduction without the written authorization of TRGR is prohibited. */
function getWestlawFrameReference(strWestlawFrameName){var objWestlawFrameReference=null;if(strWestlawFrameName.toLowerCase()=="_top"){objWestlawFrameReference=window.top}else{var topFrame=getTopWestlawFrame();objWestlawFrameReference=findWestlawFrameReference(topFrame,strWestlawFrameName)}return objWestlawFrameReference}function getTopWestlawFrame(){try{if(top.name){return top}}catch(err){return getFrameFromWindow(getFNFromURL(document.location.href),window)}return top}function getFrameFromWindow(strWestlawFrameName,startingWindow){if(startingWindow.name.toLowerCase()==strWestlawFrameName){return startingWindow}try{if(startingWindow.parent.name.toLowerCase()=="_top"){return window.top}}catch(err){return startingWindow}return getFrameFromWindow(strWestlawFrameName,startingWindow.parent)}function findWestlawFrameReference(currentwindow,strWestlawFrameName){topFrame=getTopWestlawFrame();var retval=topFrame;if(currentwindow.name){if(currentwindow.name.toLowerCase()==strWestlawFrameName.toLowerCase()){retval=currentwindow;return retval}}for(var x=currentwindow.length-1;x>=0;x--){retval=findWestlawFrameReference(currentwindow.frames[x],strWestlawFrameName);if(retval!=topFrame){return retval}}return retval}function resetObjWestlawFrameReference(){objWestlawFrameReference=null}function getFNFromURL(strURL){var strFN="_top";var intIndex;intIndex=strURL.toLowerCase().indexOf("fn=");if(intIndex>0){intIndex=intIndex+3;if(intIndex>=strURL.length||strURL.charAt(intIndex)=="&"){return strFN}strFN="";while(intIndex<strURL.length&&strURL.charAt(intIndex)!="&"){strFN=strFN+strURL.charAt(intIndex);intIndex=intIndex+1}}return strFN}if(typeof(Sys)!=="undefined"){Sys.Application.notifyScriptLoaded()};