// use JavaScript so only have JavaScript print link if JavaScript enabled
// however, can't have script tag in ul so hence this longer script
var print_link = document.createElement('a'); 
print_link.setAttribute('href',"javascript:self.print()");
var print_link_text = document.createTextNode('Print this page'); 
print_link.appendChild(print_link_text);
var list_item = document.createElement('li');
list_item.appendChild(print_link);
var page_option_list = document.getElementById('pageOptionsList'); 
var add_print_before_this = document.getElementById('addPrintBeforeThis'); 
page_option_list.insertBefore(list_item, add_print_before_this);

function stars1(o)
{
  if (o) {document.getElementById('star1').src = 'star-o.gif';} else {document.getElementById('star1').src = 'star.gif';}
}
function stars2(o)
{
  if (o) {document.getElementById('star2').src = 'star-o.gif';} else {document.getElementById('star2').src = 'star.gif';}
  stars1(o);
}
function stars3(o)
{
  if (o) {document.getElementById('star3').src = 'star-o.gif';} else {document.getElementById('star3').src = 'star.gif';}
  stars2(o);
}
function stars4(o)
{
  if (o) {document.getElementById('star4').src = 'star-o.gif';} else {document.getElementById('star4').src = 'star.gif';}
  stars3(o);
}
function stars5(o)
{
  if (o) {document.getElementById('star5').src = 'star-o.gif';} else {document.getElementById('star5').src = 'star.gif';}
  stars4(o);
}

function comment(stars)
{
  var comments = prompt('To rate ' + stars + ' stars please click OK', 'Optional comment');
  return false;
}
