

function setCookie(c_name,value,expiredays,c_domain,c_path) {
    var exdate = new Date();
    exdate.setDate(expiredays);
    var c_string = c_name + "=" + escape(value);
    if (expiredays != null && expiredays != 0) 
        c_string = c_string + ";expires=" + exdate;
    if (c_domain != null && c_domain != "") 
        c_string = c_string + ";domain=" + c_domain;
    if (c_path != null && c_path != "") 
        c_string = c_string + ";path=" + c_path;
    document.cookie = c_string;
    return true;
}


function onPageLoad() {
    var reloc_mssg = "The brian-wells.com domain name is being discontinued and may be allowed to expire at some point. The briandwells.com domain name should be used to access this page in the future.";
    var reloc_link = "http://www.briandwells.com";
    
    // get url
    reloc_link += window.location.search.substring(1);
    
    // set cookies
    setCookie("reloc_mssg",reloc_mssg,0,"","/relocated");
    setCookie("reloc_link",reloc_link,0,"","/relocated");

    // redirect
    window.location = "../relocated.html";
    return true;
}

