Hi,

I have the following code which individually works, but I don't know how to put it together in JavaScript......


if document.referrer.indexOf('Belgium')>0



then ("a.optionLink:contains('Belgium"+"')").click();



else ("a.optionLink:contains('England"+"')").click();



Any chance you could show me how to script this??