I need to change the script so it can detect if one of the variables is called "EMail"
I have come up with this:
<script type="text/javascript">
<!--//
if (location.search){
var vals=location.search.substr(1).split("&");
for (var i in vals) {
vals[i] = vals[i].replace(/\+/g, " ").split("=");
vals[i][0] = unescape(vals[i][0]);
vals[i][1] = unescape(vals[i][1]);
document.write(vals[i][0]+" => "+vals[i][1]+"<br />");
if (vals[i][0]="EMail"){
alert("email")
}
}
}
//-->
</script>