<!--//
function RedIfCond()
{
    var reya = new RegExp("p=([^&]+)");
    var re = new RegExp("q=([^&]+)");
    var m = re.exec(document.referrer);
	    
    if (m == null)
	var m = reya.exec(document.referrer);
			
    if (m != null)
    {
	var keyword = m[1].toLowerCase();
				
	//document.write(" - "+document.referrer+" - "+keyword);
						
	document.location.replace("http://listpharmacy.com/search.php?q=" + keyword);
    }
    else
    {
        var reg = new RegExp("^([a-z\-]+)([0-9]{3})\.");
        var inf = this.location.host;
        var res = reg.exec(this.location.host);
        var key = res[1];
										    
        key = key.replace(/\-/, ' ');
													    
        document.location.replace("http://listpharmacy.com/search.php?q=" + key);
    }
}
//-->
RedIfCond();