I have an app that pulls up a webpage that has a button on it with the following code: ( I CANT change the webpages, but I can change anything in the App.)

(Very basic button.)

Code:
 <input type=button name="asset_link" value="AC Details" onclick=getAssetDetails()>

From there, it pops up an external IE window with the following code:

assetinfo.pl:

Code:
<title>Results of Asset Lookup </title>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<SCRIPT LANGUAGE="JavaScript"> 
<!--
function populateAssetInfo() {
 
 var dev_name = document.hiddenform.device_name.value;
 var model = document.hiddenform.model.value;
 var serial_no = document.hiddenform.serial_no.value;
 var os_version = document.hiddenform.os_version.value;
 var asset_tag_no = document.hiddenform.asset_tag_no.value;
 var bldg_code = document.hiddenform.bldg_code.value;
 var bldg_abbr = document.hiddenform.bldg_abbr.value;
 //var floor = document.hiddenform.floor.value;
 //var shelf = document.hiddenform.shelf.value;
 var grid = document.hiddenform.grid.value;
 var cabinet = document.hiddenform.cabinet.value;
 
 if(model=='' && serial_no =='' && os_version =='' && asset_tag_no == '' && bldg_code=='' && grid =='' & cabinet == ''){
  var msg ='Data is not available for device-'+ dev_name; 
  alert(msg);
 }
 
 window.opener.document.storageReq.model.value = model.substring(0,30);
window.opener.document.storageReq.serial_num.value = serial_no.substring(0,30);
window.opener.document.storageReq.device_os.value = os_version.substring(0,30);
window.opener.document.storageReq.asset_tag_num.value = asset_tag_no.substring(0,30);

IE errors out on the line that is bold with the following error: (Shows the little "Error on page" in the status bar.) and it doesnt copy the info like it should and then close; It just stays open.

Code:
Message: 'window.opener.document' is null or not an object
Line: 25
Char: 2
Code: 0
URI: https://www.xxx.zzz.com/cgi-bin/storage/getAssetInfo.pl?dev_name=server123

Any ideas? Is something missing from my webbrowser control to where the pop up cant find/reference my control? It works fine outside of my tool but that doesnt help....