function SetTextAndBGColor(layername,bgcolor,bgcolor2,text) {
		layername2='i_'+layername;
		layername3='t_'+layername;
		
		if(isIE()) {
		document.all[layername].style.backgroundColor=bgcolor;
		document.all[layername2].style.backgroundColor=bgcolor2;
		document.all[layername3].style.color=text;
		}
		else {
		document.getElementById(layername).style.backgroundColor=bgcolor;
		document.getElementById(layername2).style.backgroundColor=bgcolor2;
		document.getElementById(layername3).style.color=text;
		}


	}

function isIE ( ) {
	return( navigator.userAgent && navigator.userAgent.indexOf("MSIE") >= 0 );
}

function imgOpen(imgURL,imgWidth,imgHeight,Title) {

var features;
  var top = (screen.height - imgHeight)/2, left = (screen.width - imgWidth)/2;
  if(top < 0) top = 0;
  if(left < 0) left = 0;
  features = ',top=' + top + ',left=' +left;

var imgWndw=window.open('','_blank','width='+imgWidth+',height='+
  imgHeight+',toolbar=no,menubar=no,location=no,status=no,'+
  'resizable=yes,scrollbars=no'+features);
var imgTitle=(Title)?Title:imgURL+": "+imgWidth+'x'+imgHeight;
with (imgWndw.document){
  open();
  write('<ht'+'ml><he'+'ad><ti'+'tle>'+imgTitle+'</ti'+'tle>'+
  '</he'+'ad><bo'+'dy leftmargin="0" topmargin="0" '+
  'rightmargin="0" bottommargin="0" marginwidth="0" '+
  'marginheight="0"><img src="'+imgURL+'" width="'+imgWidth+
  '" height="'+imgHeight+'" border="0" alt="'+imgTitle+
  '"></bo'+'dy></ht'+'ml>');
  close();
}
return false
}