function setbgk(theCol, thePointerColor) {
  theCol.style.backgroundColor = thePointerColor;
    return true;
}
//------------------------------------//

function dropFile(btn){
	if(document.getElementById) {
		tr = btn;
		while (tr.tagName != 'TR') tr = tr.parentNode;
		tr.parentNode.removeChild(tr);
		checkForLast();
	}	
}
function addFile(btn){
	if(document.getElementById) {
		tr = btn;
		while (tr.tagName != 'TR') tr = tr.parentNode;
		var idSuffix = Math.round(Math.random()*1000);
		var newTr = tr.parentNode.insertBefore(tr.cloneNode(true),tr.nextSibling);
		thisChilds = newTr.getElementsByTagName('td');
		for (var i = 0; i < thisChilds.length; i++){
			if (thisChilds[i].className == 'header') thisChilds[i].innerHTML = '';
		}
		checkForLast();
	}	
}

function NewWindow(murl,mtitle,mwidth,mheight,mtop,mleft){
	var MWIndows;
	MWindows = window.open(murl,mtitle,"width="+mwidth+",height="+mheight+",top=0,left=0, scrollbars=yes"); 
	MWindows.opener = self; 
}

