This is in the called program: [CODE] //********************************************************************************* function FORM_OnInit() { lawForm.setFormValue("text83",vPath); x = window.location.search y1 = x.indexOf("V:") y2 = x.indexOf("I:") y3 = x.indexOf("||host") vVendor = x.substr(y1+2,y2-y1-2) vVendor = lTrim(vVendor) vInvoice = x.substr(y2+2,y3-y2-2) return true; }