function openImageWindow(imageSrc,imageTitle) {
	fileName = 'popup.html?' + escape(imageSrc) + '&' + escape(imageTitle);
	myWindowHandle = window.open(fileName,'windowName','directories=no,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,resizable=no,width=275,height=275');
}
function openFlashWindow(FlashSrc,imageTitle) {
	fileName = 'flashpopup2.html?' + escape(FlashSrc) + '&' + escape(imageTitle);
	myWindowHandle = window.open(fileName,'FlashWindow','directories=no,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,resizable=yes,width=800,height=500');
}

// **** Window Opener ****
var wImg = null;
function queryWin(w){return !(w==null||w.closed||typeof w=="undefined")}
function focusWin(w){if(w.blur)w.focus()}
function show(url, width, height){
	width = (!width)? 500: width;
	height = (!height)? 500: height;
	var ff='width=' + width + ',height=' + height + ',resizable,scrollbars=no';
	if(queryWin(wImg)){
		wImg.location.href = url;
		focusWin(wImg)
		return false;
	}
	else{
		wImg = window.open(url,"wImg",ff)
		if(wImg){
			focusWin(wImg);
			return false;
		}
	}
	return true;
}
