function openwin(winurl,winname,winfeatures,w,h){
    c='';
	l=(screen.width-w)/2;
	t=(screen.height-h)/2;
	wndPos='top='+t+',left='+l;
	if(winfeatures.length>0)
		c=',';
	newwin=window.open(winurl,winname,winfeatures+c+'width='+w+',height='+h+','+wndPos+',scrollbars=yes');
	newwin.focus();
}
function _openwinImg(winurl,winname,winfeatures,w,h){
    c='';
	l=(screen.width-w)/2;
	t=(screen.height-h)/2;
	wndPos='top='+t+',left='+l;
	if(winfeatures.length>0)
		c=',';
	var newwin=window.open('',winname,winfeatures+c+'width='+w+',height='+h+','+wndPos);
	newwin.document.write("&lt;html&gt;&lt;body style='margin:0px;padding:0px'&gt;<img src='"+winurl+"' />&lt;/body&gt;&lt;/html&gt;");
	newwin.document.close();newwin.focus();
}