I have a portal app that uses javascript to pull from dropdown boxes and sends to another iview. We are currently using WAD 3.5 which works just fine, but are migrating to WAD 7.0. The script does not work and pulls "undefined" insteads of values". I am including the script. Any help would be appreciated.

function runReport()
{
var i;
var ZPMFNORG_key;
var ZPMFNORG_parm="";
var ZPMOPAREA_key;
var ZPMOPAREA_parm="";
var ZPMOPASST_key;
var ZPMOPASST_parm="";
var ZPMORG_key;
var ZPMORG_parm="";
var ZPMREGBU_key;
var ZPMREGBU_parm="";
var Z0FISCPER_key;
var Z0FISCPER_parm="";
var ZPMLOCN_key;
var ZPMLOCN_parm="";
var cparms;
var cparms2;
var selectBoxes = new Array(document.forms.length);
for (i = 0; i < document.forms.length; i++)
{
formObj = document.forms[i];
for(j = 0; j < formObj.elements.length; j++)
{
if(formObj[j].name == 'ITEM')
hiddenValue = formObj[j].value;
if(formObj[j].tagName == 'SELECT')
{
if(hiddenValue == 'DROPDOWNBOX_1')
ZPMFNORG_key=formObj[j].value;
else if(hiddenValue == 'DROPDOWNBOX_2')
ZPMOPASST_key = formObj[j].value;
else if(hiddenValue == 'DROPDOWNBOX_3')
ZPMOPAREA_key = formObj[j].value;
else if(hiddenValue == 'DROPDOWNBOX_4')
ZPMORG_key = formObj[j].value;
else if(hiddenValue == 'DROPDOWNBOX_5')
ZPMREGBU_key = formObj[j].value;
else if(hiddenValue == 'DROPDOWNBOX_6')
Z0FISCPER_key = formObj[j].value;
else if(hiddenValue == 'DROPDOWNBOX_7')
ZPMLOCN_key = formObj[j].value;
}
}
}
ZPMFNORG_key="REF";
ZPMORG_key = "DOWN";

//build object parameters + ZPMFNORG_key + "' ";
ZPMFNORG_parm = "ZPMFNORG='" + ZPMFNORG_key + "' ";
ZPMOPAREA_parm = "ZPMOPAREA='" + ZPMOPAREA_key + "' ";
ZPMOPASST_parm = "ZPMOPASST='" + ZPMOPASST_key + "' ";
ZPMORG_parm = "ZPMORG='" + ZPMORG_key + "' ";
ZPMREGBU_parm = "ZPMREGBU='" + ZPMREGBU_key + "' ";
Z0FISCPER_parm = "Z0FISCPER='" + Z0FISCPER_key + "' ";
ZPMLOCN_parm = "ZPMLOCN='" + ZPMLOCN_key + "' ";
//build xml text
//adding /Row to endcode for new version vc
cparms = "<Params version='2'><Row "+ ZPMFNORG_parm + ZPMOPAREA_parm + ZPMOPASST_parm + ZPMORG_parm + ZPMREGBU_parm + Z0FISCPER_parm + ZPMLOCN_parm +"></Row></Params>";
cparms2 = "<Params version='2'><Row "+ ZPMLOCN_parm + "/></Params>";
//alert("Event pm select Text:"+cparms);
if(Z0FISCPER_key == "!ALL")
alert("Please select a Fiscal Year/Period");
else
EPCMPROXY.raiseEvent("urn:com.cop.vc:epcm", "pm_select", cparms, null);
EPCMPROXY.raiseEvent("urn:com.cop.vc:epcm", "pm_select2", cparms2, null);
}