/*
 RowColor
 Version 1.05
 12 September 2011
 Mark Gervais, http://www.tohimbeglory.org
  
 Description:
  Defines functions used for mouse activity in tables.
 
 Change log:
  V1.03 08/29/2011 - Added buildlinks string to cookie on any row click / double-click
  V1.04 08/30/2011 - Moved buildlinks string to ID element of row; added selection to buildlinks string
  V1.05 09/12/2011 - Removed hardcoded colors; replaced with TEMPLATE_ROWxxxx.png files

 Instructions:
  Include this script in the "Head" section of an iframe page.
*/

function rowover(form)
{
 var xlst = form.id;
 if (xlst.substring(0,3) !== 'Q:;') form.style.backgroundImage = "url(./img/template_rowover.png)";
}

function rowback(form)
{
 var xlst = form.id;
 if (xlst.substring(0,3) !== 'Q:;') form.style.backgroundImage = "";
}

function rowclick(form)
{
 var xlst = form.id;
 if (xlst.substring(0,3) == 'Q:;')
 {
  form.id = xlst.substring(3);
  rowover(form);
 }
 else
 {
  xlst = 'Q:;' + xlst;
  form.id = xlst;
  form.style.backgroundImage = "url(./img/template_rowclick.png)";
 }
 SetCookie('buildlinks', xlst);
}

function rowdblclick(form)
{
 var xlst = form.id;
 SetCookie('buildlinks', xlst);
 location = './paged.html';
}

