
var prop = "'screenX=0,left=0,screenY=0,top=0,width=800,height=600,menubar=no,resizable=no,titlebar=yes,toolbar=yes,alwaysRaised=yes,status=yes,scrollbars=yes,fullscreen=0'"

function openWin(url,props)
{
  _prop = (props ? props : prop)
  var pop = window.open(url,"popup",_prop);
  pop.focus();
}

function changeURL(id)
{
  document.location.href="default.asp?id="+id
}

function swapClass(theEl)
{
  var theElement = typeof(theEl) != "object" ? document.getElmentById(theEl) : theEl;
  S = theEl.className;
  theEl.className = S.charAt(S.length-1) == '0' ?  S.slice(0,S.length-1) + '1' : S.slice(0,S.length-1) + '0';
}

function swapStyle(theEl)
{
  var theElement = typeof(theEl) != "object" ? document.getElmentById(theEl) : theEl;
  theElement.style.color = "#FFFFFF";
}

function swapImg(name) {
  theElement = document.images[name];
  S = theElement.src;
  if (S.charAt(S.length-5) == '0') theElement.src = S.slice(0,S.length-5) + '1' + S.slice(S.length-4);
  else theElement.src = S.slice(0,S.length-5) + '0' + S.slice(S.length-4);
  }

