
function OpenWindow(WinURL,WinHandle) {
		window.open(WinURL,WinHandle,'toolbar=yes,scrollbars=yes,location=no,directories=no,status=no,menubar=no,resizable=no,width=600,height=400');
//		return false;
	}

function openWin(winname,w,h){ 
xpos = screen.width; 
ypos = screen.height; 
win=window.open(""+winname, "openWinda", "height="+h+",width="+w+",top="+(ypos/2-h/2)+",left="+(xpos/2-w/2)+",screenX="+(xpos/2-w/2)+",screenY="+(ypos/2-h/2)+""); 
}

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
}
