function ChangeSize() 
{
     var obj = document.getElementById("iOffice");
     obj.style.height = "0px";
     var doc = obj.contentDocument || obj.contentWindow.document
     if (doc.body.scrollHeight == 0) {
         obj.style.display = "none";
     }
     else {
          obj.style.display = "";
           obj.style.height = doc.body.scrollHeight + 5 + 'px';
           obj.style.width = doc.body.scrollWidth + 5 + 'px';
     }
           
}


function srcSet()
{
      var obj = document.getElementById("iOffice")
      if (obj != undefined) {
            obj.style.height = "0px";
            obj.src = "shortlistedoffice.aspx?d=" + Math.random();
     }
}

function check() {
    if (window.opener != undefined) {
        window.opener.srcSet();
    }
}

function isNumberKey(evt)
{
     var charCode = (evt.which) ? evt.which : event.keyCode
     if (charCode > 31 && (charCode < 47 || charCode > 57 ))
          return false;
     return true;
}


function getPropertyVw(code, linkUrl , pgUrl) 
{
         var f = document.getElementById("PropFrm");
         f.PropCode.value= code;
         f.action = linkUrl;
         f.pgUrl.value = pgUrl;
         f.submit();
     }

     
