var referrer;
var telephone;
pla=document.URL;
id1=pla.indexOf("tel=no");
if (id1!=-1)
 telephone="no";
else
 telephone="";
id2=pla.indexOf("source=");
if (id2!=-1)
 referrer=pla.substring(id2+7);
else
 referrer="";
if (document.cookie=='')
{
 document.cookie='';
 text="telephone=";
 text=text+telephone;
 text=text+";source=";
 text=text+referrer;
 text=text+";domain=www.hoteldirect.co.uk;path=/";
 document.cookie = text;
}

