// GERERAL JAVASCRIPT FUNCTIONS

function newWin(arg,w,h) {
	if (!(!winup || winup.closed)){ 
		winup.focus(); 
	}
	var winup=window.open(arg,'img_data','toolbar=no,resizable=yes,scrollbars=yes,width='+w+',height='+h);
	winup.focus();
	
	return;
}

var colors = new Array();
colors[0] = new Array('#EBBE5B','#ECE0E0','#660000','#000000');
colors[1] = new Array('#CDD9E6','#E1E9F0','#336699','#336699');
colors[2] = new Array('#F0D9C7','#F6E9DE','#202539','#202539');
colors[3] = new Array('#C4B9B3','#F2DDDE','#6D523F','#6D523F');

function flashRow(target, cset) {
	if(!cset) cset = 0;
	target.style.backgroundColor = colors[cset][0];
	target.style.color = colors[cset][2];
	return;
}

function restoreRow(target, cset) {
	if(!cset) cset = 0;
	target.style.backgroundColor = colors[cset][1];
	target.style.color = colors[cset][3];
	return;
}
