

function highlight_row(the_element, checkedcolor) {
	if(the_element.parentNode.parentNode.style.backgroundColor != checkedcolor) {
		the_element.parentNode.parentNode.style.backgroundColor = checkedcolor;
	} else {
		the_element.parentNode.parentNode.style.backgroundColor = 'white';
	}
	// testing lang ng laman ng element
	//document.write(the_element.value);
}

function set_hover(the_row, color, checkedcolor) {
	if(the_row.style.backgroundColor != checkedcolor) {
		the_row.style.backgroundColor = color;
		the_row.style.cursor = "hand";
	}
}

function remove_hover(the_row, color, checkedcolor) {
	if(the_row.style.backgroundColor != checkedcolor) {
		the_row.style.backgroundColor = color;
		the_row.style.cursor = "default";
	}
}

function removetab_hover(the_row, the_image, d_image) {
	if(the_row.style.background != d_image) {
		the_row.style.background = the_image;
		the_row.style.cursor = "default";
	}
}
function settab_hover(the_row, the_image, d_image) {
	if(the_row.style.background != d_image) {
		the_row.style.background = the_image;
		the_row.style.cursor = "hand";
	}
}

function chkAll(frm, arr, mark) {
	for(i=0; i <= frm.elements.length; i++) {
		try {
			if (frm.elements[i].name = arr) {
				frm.elements[i].checked = mark;
			}
		} catch(err) {}
	}
}

function pload()
{ 
  var args = pload.arguments;
  document.imageArray = new Array(args.length);
  for(var i=0; i<args.length; i++)
  {
    document.imageArray[i] = new Image;
    document.imageArray[i].src = args[i];
  }
}

function box_in(mm,ml) {
	mm.style.border = "1px solid #999999";
	mm.style.backgroundColor = "#E9E9E9";
	help_in(helpfrm,ml);
}
	 
function box_out(mm) {
	mm.style.border = "1px solid #FFFFFF";
	mm.style.backgroundColor = "";
	help_out(helpfrm);
}

function box_out1(mm) {
	mm.style.border = "1px solid #CCCCCC";
	mm.style.backgroundColor = "";
	//help_out(helpfrm);
}

function box_in1(mm) {
	mm.style.border = "1px solid #999999";
	mm.style.backgroundColor = "#E9E9E9";
	//help_in(helpfrm,ml);
}
