	
        var ie4 = false;
        function setContent(name, value) {
                var d;  
                if (ie4) { 
                        d = document.all[name];
                } else {
                        d = "document.getElementById('" + name +"')";
                }       
                eval(d).innerHTML = value;    
        }       

	function getContent(name) {
		var d;
                if (ie4) {
                        d = document.all[name];
                } else {
                        d = "document.getElementById('" + name +"')";
                }
                return eval(d).innerHTML;
	}

        function setColor(name, value) {
                var d;  
                if (ie4) { 
                        d = document.all[name];
                } else {
                        d = "document.getElementById('" + name +"')";
                }
                eval(d).style.color = value;  
        }

	function getColor(name) {
                var d;
                if (ie4) {
                        d = document.all[name];
                } else {
                        d = "document.getElementById('" + name +"')";
                }
                return eval(d).style.color;
        }

        function animate(name, col) {
		var value = getContent(name);
		if (value.indexOf('<span') >= 0) { return; }
		var length = 0;
                var str = '';
		var ch;
		var token = '';
		var htmltag = false;	
                for (i = 0; i < value.length; i++) {
			ch = value.substring(i, i+1);
			if (i < value.length - 1) { nextch = value.substring(i+1, i+2); } else { nextch = ' '; }
			token += ch;
			if (ch == '<' && '/aAbBpPhHiIoOuUlLtT'.indexOf(nextch) >= 0) { htmltag = true; }
			if (ch == '>' && htmltag) { htmltag = false; }
			if (!htmltag && ch.charCodeAt(0) > 30 && ch != ' ' && ch != '\n') {		
                        	str += '<span id="' + name + '_' + length + '">' + token + '</span>';
				token = '';
				length++;
			}
                }
                setContent(name, str);
                command = 'animateloop(\'' + name + '\', ' + length + ', 0, 1, \'' + col + '\')';
                setTimeout(command , 100);
        }

        function animateloop(name, length, ind, delta, col) {
		var next = ind + delta;
		if (next >= length) { delta = delta * -1; next = ind + delta; }
		if (next < 0) { delta = delta * -1; next = ind + delta; }
                setColor(name + '_' + ind, getColor(name + '_' + next));
                setColor(name + '_' + next, col);
                command = 'animateloop(\'' + name + '\', ' + length + ', ' + next + ', ' + delta + ', \'' + col + '\')';
                setTimeout(command , 100);
        }
	function ShowWindow(n,u,w,h,x)
	{

		args="width="+w+",height="+h+",resizable=yes,scrollbars=yes,status=0";
		//args="width="+w+",resizable=yes,scrollbars=yes,status=0";
		remote=window.open(u,n,args);
		if (remote != null)
		{
		    if (remote.opener == null)
			remote.opener = self;
		}
		if (x == 1)
			{ return remote; }
	}
	function ShowWindow2(n,u,w,h,x)
	{

		args="width="+w+",height="+h+",menubar=yes, toolbar=yes,resizable=yes,scrollbars=yes,status=yes";;
		remote=window.open(u,n,args);
		if (remote != null)
		{
		    if (remote.opener == null)
			remote.opener = self;
		}
		if (x == 1)
			{ return remote; }
	}

////////////////////////////////////////////////////
//Disable right function
// Set the message for the alert box
am = "Hi, have a good day!";

// do not edit below this line
// ===========================
bV  = parseInt(navigator.appVersion)
bNS = navigator.appName=="Netscape"
bIE = navigator.appName=="Microsoft Internet Explorer"

function nrc(e) {
   if (bNS && e.which > 1){
      alert(am)
      return false
   } else if (bIE && (event.button >1)) {
     alert(am)
     return false;
   }
}

document.onmousedown = nrc;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (bNS && bV<5) window.onmousedown = nrc;
