<!--- Javascript --->
function cOn(td,c){
	if(document.getElementById||(document.all && !(document.getElementById))){
	td.style.backgroundColor=c;
	}
	}
	
	function cOut(td,c){
	if(document.getElementById||(document.all && !(document.getElementById))){
	td.style.backgroundColor=c;
	}
	}
	
function elem_len(f,elem){
	var e_len = document.forms[f].elements[elem].value.length;
	var result = true;
	if (e_len <= 0){
		result = false;
		}
	return result;
	return e_len;
	}
	
//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.com

/*var message="Function disabled!";
var rightClick = true;

///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

if (rightClick) {document.oncontextmenu=new Function("alert(message);return false")}
*/
function popwin_center(u,w,h,s,m,t){
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	p = "width=" + w + ",height=" + h +  ",scrollbars=" + s + ",menubar=" + m + ",toolbar=" + t + ",top=" + TopPosition + ",left=" + LeftPosition;
	neowinmx=window.open(u,"neowinmx",p);
	}
	
function cfm_myaction(u,m){
	if (confirm(m))
		self.location.href=u;
	}

function init() {
  if (!document.getElementById) return
  var imgOriginSrc;
  var imgTemp = new Array();
  var imgarr = document.getElementsByTagName('img');
  for (var i = 0; i < imgarr.length; i++) {
    if (imgarr[i].getAttribute('hsrc')) {
        imgTemp[i] = new Image();
        imgTemp[i].src = imgarr[i].getAttribute('hsrc');
        imgarr[i].onmouseover = function() {
            imgOriginSrc = this.getAttribute('src');
            this.setAttribute('src',this.getAttribute('hsrc'))
        }
        imgarr[i].onmouseout = function() {
            this.setAttribute('src',imgOriginSrc)
        }
    }
  }
}
onload=init;
