jQuery UI 1.10.3 IE8 Dialog Error

jQuery UI 1.10.3 IE8 Dialog Error

by tward

HTML

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> 
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/redmond/jquery-ui.css" type="text/css" media="all" />
<a href="#" onclick="javascript:openLocator(); return false;">testing</a>
<script>
function openLocator(pPage,pReturnItemName,pMulti,pExclude,pRequest,pOthNames,pOthVals,pTitle,pType,pOBJ,pLocateMany)
{
 var vMulti = (pMulti == undefined) ? 'N' : pMulti;
 var vExclude = (pExclude == undefined) ? '' : pExclude;
 var vRequest = (pRequest == undefined) ? 'OPEN' : pRequest;
 var vTitle = (pTitle == undefined) ? 'Locator' : pTitle;
 var vOthNames = (pOthNames == undefined || pOthNames=='') ? '' : ','+pOthNames;
 var vOthVals = (pOthVals == undefined || pOthVals=='') ? '' : ','+pOthVals;
 var vDebug = 'NO';
 var vLocateMany= (pLocateMany == undefined) ? 'N' : pLocateMany;

 var iframesource = '<div width="100%" id="LocatorDiv" class="LocatorDiv" name="LocatorDiv"><iframe width="100%" ' +
                    'height="100%" ' +
                    'frameborder="0" ' +
                    'name="Locator" id="Locator" class="Locator" ' +
                    'allowtransparencty="true" ' +
                    'style="background-color: transparent;" ' +
                    'src="http://www.jquery.com"></iframe></div>';

 var vInnerWidth = $(window).width();
 var vInnerHeight = $(window).height();

 var xRatio = vInnerWidth /960;
 var yRatio = vInnerHeight /550;
 var xRatio2 = vInnerWidth / 1371;

 if(xRatio < 1.1)
   xRatio=1.1;
 
 if(yRatio < 1.1)
   yRatio=1.1;

 if(xRatio2 < 1.05)
   xRatio2=1.05;

 if(vMulti=='Y' || vLocateMany=='Y')
   {
    var execute = function() { document.getElementById('Locator').contentWindow.passBack('theList',pReturnItemName); }

    var cancel = function() { $dialog.dialog('close'); }

                                  
    var...