I am trying to access variables via scripting and having a real problem with it and thought someone might be able to help.<BR><BR>I am bringing in a variable from a previous asp page as follows:<BR><BR>myVar = trim(request("maint_type"))<BR><BR>When I try to access it via JavaScript, it will not pick up the variable (or sort of). if I try to display the variable, it seems to display it correctly, however, when i try to test it (if (myVar == "A")) the test does not work. Even though it displays correctly. If I just set the variable to "A" the test works fine. It is as though there is some "hidden" character there that prevents the match.<BR><BR>anyone have any ideas?<BR><BR>Thanks