
	function Check(e,mode)
	{
		if (mode == "check") 
		{
			e.checked = true;
		}
		else 
		{
			e.checked = false;
		}
		Highlight(e,mode);
	}
	
	function SetAll(mode)
	{
		var dl = document.dumpList;
		var len = dl.elements.length;
		for (var i = 0; i < len; i++) 
		{
			var e = dl.elements[i];
			if (e.name.indexOf("chk") == 0)
			{
				Check(e,mode);
			}
		}
	}
	
	function Highlight(e,mode)
	{
		var r = null;
		r = e.parentElement.parentElement;
		if (r)
		{
			if (mode == "check")
			{
				r.className = "rowhighlighted";
			}
			else
			{
				r.className = "rownormal";
			}
		}
	}

	function Toggle(e)
	{
		if (e.checked)
		{
			Highlight(e,"check");
		}
		else
		{
			Highlight(e,"clear");
		}
	}
	
	function SetAction1Chosen ()
	{
		if (document.frmAction1.listAction1.value != "")
		{
			var dl = document.dumpList;
			dl.actionchosen.value = document.frmAction1.listAction1.value;
			dl.submit();
		}
		else
		{
			alert("Please select an action");
		}
	}

	function SetAction2Chosen ()
	{
		if (document.frmAction2.listAction2.value != "")
		{
			var dl = document.dumpList;
			dl.actionchosen.value = document.frmAction2.listAction2.value;
			dl.submit();
		}
		else
		{
			alert("Please select an action");
		};
	}

  function submitViaEnter(evt)
  {
    evt = (evt) ? evt : event;
    var target = (evt.target) ? evt.target : evt.srcElement;
    var form = target.form;
    var charCode = (evt.charCode) ? evt.charCode:
      ((evt.which) ? evt.which : evt.keyCode);
    if (charCode == 13 || charCode == 3) {
      form.submit();
      return false;
    }
  }

  function pause(numberMillis) {
    var dialogScript =
           'window.setTimeout(' +
           ' function () { window.close(); }, ' + numberMillis + ');';
    var result =
    window.showModalDialog(
           'javascript:document.writeln(' +
            '"<script>' + dialogScript + '<' + '/script>")');
  }

  function pokeList(iListNo,cListDetail) {
    if (iListNo == 1) {
      parent.frmLists.list1.value=cListDetail;
    } else if (iListNo == 2) {
      parent.frmLists.list2.value=cListDetail;
    } else if (iListNo == 3) {
      parent.frmLists.list3.value=cListDetail;
    }
  }

  function alter(object) {
    object.target = "postframe";
    return true;
  }

  function trimAll(sString) {
    while (sString.substring(0,1) == ' ') {
      sString = sString.substring(1, sString.length);
    }
    while (sString.substring(sString.length-1, sString.length) == ' ') {
      sString = sString.substring(0,sString.length-1);
    }
    return sString;
  }

  function insertFlash(cDivId, iWidth, iHeight, cSwf, cFlashVars) {
    var d = document.getElementById(cDivId);
    d.innerHTML =
      '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width=' + iWidth + ' height=' + iHeight +'><param name="movie" value="' + cSwf + '"><param name="quality" value="high"><param name="FlashVars" value="' + cFlashVars + '"><embed src="' + cSwf + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width=' + iWidth + ' height=' + iHeight + '></embed></object>';
  }

  var isLoaded = false;
  function init() {
    isLoaded = true;
  }

  

