//<!-- begin script

function shortlist(days){
    var act = SetOrUpdateCookie(days);
    userName = GetUserName();
    // Only carry on if Cookies were set.
    if (userName != 0) {
        fileNumber = GetFileNumber();
        expiryDate = new Date(GetExpiryDate());
        textDate = showDate(expiryDate);
  		var window_name = "#shortlist#";
  		window_name += "&expire=" + textDate + "&username=" + userName + "&listid=" + fileNumber + "&action=" + act;
  		window.location.href = window_name;
    }
}

//--> end script
