var theURL = window.location; // or var theUrl = document.URL;
if (/(&type=1)$/i.test(theURL)) { // returns true if ends in &type=1
dothis();
}
else {
dothat();
}
"I cannot conceive that anybody will require multiplications at the rate of 40,000 or even 4,000 per hour ..." -- F. H. Wales (1936)