// JavaScript Document main.js

function SetLinkStyle(element, prop) {
  if (prop == 'link') {
    element.style.textDecoration = 'underline';
  }
  else {
    element.style.textDecoration = 'none';
  }
} // function SetLinkStyle()

function SetColor(element, xcolor) {
  if (xcolor == 'err')
    element.style.backgroundColor = '#ff8c8c';
  else if (xcolor == 'war')
    element.style.backgroundColor = '#ffbf80';
  else if (xcolor == 'read')
    element.style.backgroundColor = '#fffea6';
  else if (xcolor == 'row')
    element.style.backgroundColor = '#ffbdbd';
  else
    element.style.backgroundColor = '';
  
} // function SetColor()

