function setCookie(name,value,ext){var date=new Date();date.setTime(date.getTime()+(ext*24*60*60*1000));var expires="; expires="+date.toGMTString();document.cookie=name+"="+value+";"+expires+"; path=/"}
function setRefValue(){
var reg=new RegExp("(^|&)ref=([^&]*)(&|$)");
var search = window.location.href.split('?');
if(search.length > 1)
{
var r=("?"+search[1]).substr(1).match(reg);
if(r != null)
{
setCookie("dofollowfxref",r[2],14);
}
}
}
setRefValue();