//FUNCION CAMBIO DE COLOR EN RESULTADOS
function cambia_color(src, evnt, backColor) {

	if (evnt == '1') {
		src.style.backgroundColor='#EDF3ED'; 
		src.style.cursor='hand';
	} else {
		src.style.backgroundColor= backColor;
	}
		
}


function procesando()
{
      document.all.PleaseWait.style.left = document.body.scrollLeft+((document.body.clientWidth - 300) / 2)
      document.all.PleaseWait.style.top = document.body.scrollTop+((document.body.clientHeight - 85) / 2)
      document.all.PleaseWait.style.visibility = "visible"
}



function pickcolor(tfield){
	var arr = showModalDialog("selcolor.htm","","font-family:Verdana; font-size:12; dialogWidth:30em; dialogHeight:17em" );
	if (arr != null) eval('proyecto.' + tfield +'.value=arr;');
}



function filterNum(str) {
re = /^\$|,/g;
// remove "$" and ","
return str.replace(re, "");
}
//  End -->




function openWin(URL) { aWindow=window.open(URL,"Large","toolbar=no,width=<? echo $wsize ?>,height=<? echo hsize ?>,status=no,scrollbars=no,resize=no,menubars=no");
}
function openWin2(URL) {
aWindow=window.open(URL,"Large","toolbar=no,width=400,height=400,status=no,scrollbars=no,resize=no,menubars=no");
}
function maspic(URL) {
aWindow=window.open(URL,"Large","toolbar=no,width=600,height=400, status=no,scrollbars=no,resize=no,menubars=no");
}




