I am trying to write some javascript to call a PHP program ans passing variables from the Watch process. The php program connects to my database and executes the inserts. No it all works well when I execute the script out of Planet Press. But when I run the process I get an error stating Microsoft Jscript runtime error:'window' is undefined.

Here is the 1 line code
window.location='automaticInsert.php?var1=z_testingonly&var2=PO&var3=7';

I need help and/or some sample code to insert into a database.

Thanks