/*var isIE = navigator.appVersion.indexOf('MSIE') != -1 ? true : false;
var ieVer = isIE ? navigator.appVersion.substr(navigator.appVersion.indexOf('MSIE')+5, 3) : -1;
var nsVer = !isIE ? parseInt(navigator.appVersion.substr(0, 3)) : -1;
	
*/
//
// Modify the name to remove any awkward characters.
//
function cleanName(name) {
		// replace sensitive characters.
		name = name.replace("=","eq");
		name = name.replace(".","dot");
		name = name.replace(" ","_");
		return name;
}	

//
// revert the colous.
//
function revert(cID,clss)	{
	var cell = document.getElementById(cID);
						
	// catch any calls which have occured after a row has been deleted.
	if(cell == null){
		return;
	}
						
	// reset the style class and kill the timeout.
	cell.className = clss + "Trace";
	cell.idTimeOut = null;
}
//
// remove an item from an array.
//
function delFromArray(array,item) {			
		var tmpArr = new Array();
		var x = 0
												
		for ( iCount = 0; iCount < array.length; iCount++) {
			if(array[iCount] != item) {
				tmpArr[x++] = array[iCount];
			}
		}
												
		return tmpArr;
}

function copyArray(a){
	var aux = new Array();
	for(var i=0; i<a.length; i++)
		aux[i]=a[i]
	return aux;
}