<!--
	/*
		No right click script - by HTML Encrypt It! - www.htmlencrptit.com
	*/
	var Active = false;
	function checkclick(e) 
  	{
   		isMac = navigator.userAgent.indexOf('Mac')!=-1;
	   if (document.all)
	   {
		if(event.button==2||(isMac&&(event.ctrlKey||eventkeyCode==91)))
		{
		 alertUser('');
		 return false;
		}
	   }
	   else
	   {
		if (e.which==3||(isMac&&(e.ctrlKey||e.modifiers==2)))
		{
		 alertUser('');
		 return false;
		}
		else if (e.which==1)
		{
		 windowcaptureEvents(Event.MOUSEMOVE);
		 window.onmousemove = new Function("return false;");
		}
	   }
	}
	function rel_mm(e)
	{
	   if (e.which==1)
	   {
		window.releaseEvents(Event.MOUSEMOVE);
		window.onmousemove=null;
	   }
	  }
	  function contextstop()
	  {
	   alertUser('');
	   event.returnValue=false;
	   return false;
	  }
	  
	  if (document.all)
	  {
	   isMac = navigator.userAgent.indexOf('Mac')!=-1;
	   IEv=parseFloat('0'+navigator.userAgent.substr(navigator.userAgent.indexOf('MSIE')+5),10);
	   if (!isMac &&IEv>4) document.oncontextmenu=contextstop;
	   else
	   {
		document.onmousedown=checkclick;
		document.onkeydown=checkclick;
	   }
	  }
	  else if(document.layers)
	  {
	   document.captureEvents(Event.MOUSEDOWN|Event.modifiers|Event.KEYDOWN|Event.MOUSEUP);
	   document.onmousedown=checkclick;
	   document.onkeydown=checkclick;
	   window.onmouseup=rel_mm;
	  }
	  else if (document.getElementById&&!document.all)
	  {
	   var table = new Active.XML.Table;
	   var grid = new Active.Controls.Grid;
	   Active.Templates.Text.prototype.setEvent("oncontextmenu", oncontextmenu);
	   var string = new Active.Formats.String;
	   table.setURL("://server/xml?");
	   table.setRows("//securities/*");
	   table.setColumns(["name","symbol", "currency", "priceDateRange"]);
	   table.setFormats([string, string, null, string]);
	   table.request();
	   var columns = ["Company Name", "Sym", "Curr", "Data Range"];
	   grid.setColumnProperty("texts", columns);
	   grid.setAction("contextmenu", function(src){doGridContextMenu(src);});    
	   grid.setEvent("oncontextmenu", oncontextmenu);
	   grid.setRowHeaderWidth("0px");    
	   document.write(grid);
	   var rightedge=0;
	   var bottomedge=0;
	}
	function oncontextmenu(e)
	{
	   alertUser('');
	   e.cancelBubble = true;
	   e.returnValue = false;
	   this.action("contextmenu");
	   var menuobj=document.getElementById("ctxMenu")
	   rightedge=ie5? document.body.clientWidth-event.clientX : window.innerWidth-e.clientX
	   bottomedge=ie5? document.body.clientHeight-event.clientY : window.innerHeight-e.clientY
	   if (rightedge<menuobj.offsetWidth)
		menuobj.style.left=ie5? document.body.scrollLeft+event.clientX-menuobj.offsetWidth : window.pageXOffset+e.clientX-menuobj.offsetWidth
	   else
		menuobj.style.left=ie5? document.body.scrollLeft+event.clientX : window.pageXOffset+e.clientX
	   if (bottomedge<menuobj.offsetHeight)
		menuobj.style.top=ie5? document.body.scrollTop+event.clientY-menuobj.offsetHeight : window.pageYOffset+e.clientY-menuobj.offsetHeight
	   else
		menuobj.style.top=ie5? document.body.scrollTop+event.clientY : window.pageYOffset+e.clientY
	   menuobj.style.visibility="visible"   
	}      
	function alertUser(message)
	{
	   isOpera = navigator.userAgent.indexOf('Opera')!=-1;
	   if (message!=""||isOpera)
		alert(message);
	}
	function doGridContextMenu(src)
	{
	   setContext(src.getProperty("item/text") + " " + src.getProperty("item/index"));
	   grid.setProperty("selection/index", src.getProperty("item/index"));
	   var menuobj=document.getElementById("ctxMenu")
	}
	var counter_val = 20;
	function start_count(timer_delay)
	{
		counter_val = timer_delay;
		do_count_down();
	}
	function do_count_down()
	{
		if (counter_val == 0) 
			showTimer('timer', 'Go!');
		else
		{
			setTimeout('do_count_down()', 1000);
			showTimer('timer', counter_val--);
		}
	}
	function showTimer(asdf, views)
	{
		if (document.getElementById) cvdata = document.getElementById(asdf);
		else if (document.all) cvdata = document.all[asdf];
		else if (document.layers) cvdata = document.layers[asdf];
		cvdata.innerHTML = views;
	}
//->