Trying to pass string OUPATH in my javscript file during OSD MDT deployment. How to do I do this correctly?

Dec 19, 2014 at 4:15 PM
Edited Dec 19, 2014 at 4:16 PM
I have an hta and javascript file that requests different pieces of AD info and passes them along to our server during deployment. I have been trying to get the string OU path to pass but am not able to. Each time I get an error that tells me its not a valid function.
The string is called OUPATH below, I call this webservice in my task sequence during deployment after applying networking settings and it should take the value from the users input during the drop down selection.

WebService=http://YourWebServer/YourWSFolder/AD.asmx/MoveComputerToOU
Parameters=OSDComputerName,MachineObjectOU
OSDComputerName=ComputerName
MachineObjectOU=OUPath

How do I write my java code to pass this info once a user has selected the option from the drop down? I've been working on this all week and can't seem to figure this out.
function OUPath() 
{
var myVal = document.getElementById("ADOU").value;
var outPut = "";
switch (myVal) {
case "1":
outPut = "OU=Administrative,OU=Workstations,DC=imo-online,DC=com";
break;
case "2":
outPut = "OU=Development,OU=Workstations,DC=imo-online,DC=com";
break;
case "3":
outPut = "OU=External,OU=Workstations,DC=imo-online,DC=com";
break;
case "4":
outPut = "OU=IT,OU=Workstations,DC=imo-online,DC=com";
break;
case "5":
outPut = "OU=Restricted,OU=Workstations,DC=imo-online,DC=com";
break;
case "6":
outPut = "OU=Sales,OU=Workstations,DC=imo-online,DC=com";
break;
case "7":
outPut = "OU=Service Computers,OU=Workstations,DC=imo-online,DC=com";
break;
}
alert(outPut);
}