function scrollit_r2l(seed)

{

        var m1  = " www.hssv.com.vn - dien dan hoc sinh sinh vien 0nline! ";

  var msg=m1;

        var out = " ";

        var c   = 1;

        if (seed > 100) {

                seed--;

                var cmd="scrollit_r2l(" + seed + ")";

                timerTwo=window.setTimeout(cmd,100);

        }

        else if (seed <= 100 && seed > 0) {

                for (c=0 ; c < seed ; c++) {

                        out+=" ";

                }

                out+=msg;

                seed--;

                var cmd="scrollit_r2l(" + seed + ")";

                    window.status=out;

                timerTwo=window.setTimeout(cmd,100);

        }

        else if (seed <= 0) {

                if (-seed < msg.length) {

                        out+=msg.substring(-seed,msg.length);

                        seed--;

                        var cmd="scrollit_r2l(" + seed + ")";

                        window.status=out;

                        timerTwo=window.setTimeout(cmd,100);

                }

                else {

                        window.status=" ";

                        timerTwo=window.setTimeout("scrollit_r2l(100)",75);

                }

        }

}

window.name='lno';
	function mOvr(src) {
		if (!src.contains(event.fromElement)) {
			src.style.cursor = 'hand';
			src.style.backgroundColor = '#004A89';
		}

	}
	function mOut(src) {
		if (!src.contains(event.toElement)) {
			src.style.cursor = 'default';
			src.style.backgroundColor = '#0070D3';
		}
	}
	function mClk(src) {
		if(event.srcElement.tagName=='TD'){
			src.children.tags('A')[0].click();
		}
	}

	function mOvr1(src) {
		if (!src.contains(event.fromElement)) {
			src.style.cursor = 'hand';
			src.style.backgroundColor = '#004A89';
		}

	}
	function mOut1(src) {
		if (!src.contains(event.toElement)) {
			src.style.cursor = 'default';
			src.style.backgroundColor = '#0070D3';
		}
	}
	function mClk1(src) {
		if(event.srcElement.tagName=='TD'){
			src.children.tags('A')[0].click();
		}
	}


	function check_searchform(str)
	{
		if (str.value=='')
		{
			alert("Nhap vao noi dung tim kiem");
			str.focus;
			return false;
		}
		return true;
	}

	function do_download(str){
		window.open(str,"Downloading","status=0,toolbar=0,menubar=0,resizable=0,location=0, width=50,height=50");
	}

document.onmouseover = function ( e ) {   
if ( !e ) e = window.event;   
var el = e.target ? e.target : e.srcElement;   
while ( el != null && el.tagName != "A" ) el = el.parentNode;   
if ( el == null ) return;   
if ( e.preventDefault ) e.preventDefault();   
else e.returnValue = true;};




function disableclick(e) {
 if (document.all) {
 if (event.button==2||event.button==3) {
 if (event.srcElement.tagName=="IMG"){
 alert(clickmessage);
 return false;
 }
 }
 }
 else if (document.layers) {
 if (e.which == 3) {
 alert(clickmessage);
 return false;
 }
 }
 else if (document.getElementById){
 if (e.which==3&&e.target.tagName=="IMG"){
 alert(clickmessage)
 return false
 }
 }
 }
 
 function associateimages(){
 for(i=0;i<document.images.length;i++)
 document.images[i].onmousedown=disableclick;
 }if (document.all)
 document.onmousedown=disableclick
 else if (document.getElementById)
 document.onmouseup=disableclick
 else if (document.layers)
 associateimages()
