var w = null;
function openWindow(picture) {
	var winoptions = "width=670,height=530,status=no,resizable=no,scrollbars=no";
	var w = window.open(picture, "picture", winoptions);
	w.moveTo(300,300);
	w.focus();
}
function openWindow2(picture) {
	if (w != null) {
		if (document.layers) {
			w.setResizable(true);
			w.resizeTo(w,h);
			w.setResizable(false);
		} else w.resizeTo(w,h);
	}
	var x = 320;
	var y = 240;
	if ((screen.width != null) && (screen.height != null)) { 
		x = (screen.width)/2;
		y = (screen.height)/2;
	}
	var winoptions = "width=360,height=200,status=no,resizable=no,scrollbars=no";
	var w = window.open(picture, "picture", winoptions);
	w.focus();
	w.moveTo(x,y);
}
function openWindow3(url,target,width,height) {
	var winoptions = "width="+width+",height="+height+",status=no,resizable=yes,scrollbars=no";
	var w = window.open(url,target,winoptions);
//	w.focus();
}
function stat(txt) {
	window.status = txt;
}
function stat2(txt) {
	setTimeout("stat('"+txt+"')",1);
}