
function accept_copyright_notice(pub, year, paper) {
    notice = "";
    basepage = "http://www-2.cs.cmu.edu/~pbennett";
    cancelpage = "abstracts.html";
    errorpage = "abstracts.html";
    paperdir = "papers";
    if (pub == "acm") {
	notice += "Copyright (c) ";
	notice += year;
	notice += " by the Association for Computing Machinery,\nInc. Permission to make digital or hard copies of part or all of this\nwork for personal or classroom use is granted without fee provided\nthat copies are not made or distributed for profit or commercial\nadvantage and that copies bear this notice and the full citation on\nthe first page.  Copyrights for components of this work owned by\nothers than ACM must be honored.  Abstracting with credit is\npermitted.  To copy otherwise, to republish, to post on servers, or to\nredistribute to lists, requires prior specific permission and/or a\nfee.  Request permissions from Publications Dept, ACM Inc., fax\n+1 (212) 869-0481, or permissions@acm.org. The definitive version of this\npaper can be found at ACM's Digital Library -- http://www.acm.org/dl .";
    }
    else {
	// Bad link -- reload home page
	badurl = basepage + "/" + errorpage;
	window.location = badurl;
	return;
    }

    // Can make cancel page specific if wanted
    paperurl = basepage + "/" + paperdir + "/" + paper;
    okurl = paperurl;
    cancelurl = basepage + "/" + cancelpage;
    // Make box that if okay clicked, take them to url otherwise reload thispage
    if (confirm(notice)) {
	//          alert(okurl);
	window.location = okurl;
    } else {
	//          alert(cancelurl);
	window.location = cancelurl;
    }  
}
