/*Keep in mind when adding JS code that this gets stripped of newlines*/ function setNextPageURL( form ) { //first count on the NextPageURL variable injected by remote code //alert ( window._NextPageURL ); if ((window._NextPageURL != null)){ form.NextPageURL.value = window._NextPageURL return; }; //alert (window.location.href); /*add checks here for webseitepros url we dont want to get back to us*/; re = /webservices\.websitepros\.com/; if (re.test(window.location.href)){ if (form.NextPageURL.value!= null && re.test(form.NextPageURL.value)) /*let server decide where to go next*/ form.NextPageURL.value = null; }else{ form.NextPageURL.value = window.location.href } };