function setOnloads(){
	
for(var zbr=0;zbr<document.getElementsByTagName('tr').length;zbr++){
if(zbr%2==1){
document.getElementsByTagName('tr')[zbr].style.backgroundColor="#FFFFFF";
}else{
document.getElementsByTagName('tr')[zbr].style.backgroundColor="#DDDDDD";
     }
  }
}

function imagepop(pic){	
  
  var winimage=window.open('','image','height=400,width=500,status=no,locationbar=no,resizable=yes');
  var picreplace=pic.replace(/\+/g," ");
  winimage.document.write('<html><head><title>Enlarged</title>');
  winimage.document.write('<script> window.onload=function(){window.resizeTo(document.getElementById(\'image\').offsetWidth,document.getElementById(\'image\').offsetHeight+100);} </script>');
  winimage.document.write('</head><body style="margin:0px;background:#000;" onclick="self.close()">');
  winimage.document.write('<img src="http://scrgraphics.com/'+picreplace+'" style=\"height:100%;width:100%;\" id="image" />');
  winimage.document.write('</body></html>');
  winimage.document.close();
  winimage.focus();
}

function graphicpop(pic){
  var winimage=window.open('http://scrgraphics.com/gfx.php?filename='+pic,'image','height=600,width=800,status=no,locationbar=no,scrollbars=yes');
  winimage.document.close();
  winimage.focus();  	
}


window.onload=setOnloads;
