// JavaScript Document
function winPopup(href)
{
	var h=400; var w=700; var wc=parseInt((screen.availWidth-w)/2);
	var hc=parseInt((screen.availHeight-h)/2);
	popupWin = window.open(href,'window','toolbar=no, location=no, directories=no, menubar=no,resizable=no,scrollbars=yes,status=no,width='+w+',height='+h+',top='+hc+',screenY='+hc+',left='+wc+',screenX='+wc);
	popupWin.focus();
}



function showdiv(id,count)
{

  for (i=1; i<=count; i++)
  {
   var div=document.getElementById('sel_'+i);
   var div_text=document.getElementById('fist_text_'+i);
   if (div)
 	 if (i==id){
  	div.style.backgroundImage="url(/images/egemetr/first/table_bg_gray.gif)";
	div.style.color='#f45d14';
	div_text.style.display="";
  	}
	else { div.style.backgroundImage="url(/images/egemetr/first/table_bg_blue.gif)";
	div.style.color='white'; div_text.style.display="none";}
  }
}
