﻿
function jsOpenImage(img)
{
	var pic = img.src.toLowerCase();
	pic = pic.substring(pic.lastIndexOf('/images/')).replace('-ico.jpg', '.jpg');
	var w = self.open(pic, 'zoom','tollbar:no,resizable=1,scrollbars=1');
	//self.open(pic, 'zoom', 'tollbar=0,resizable=1,width=400,height=400');
	w.focus();
	return false;
}

function jsResizeWin2Pic(img) {
	var NS = (navigator.appName == "Netscape") ? true : false;
	var w = (NS) ? self.innerWidth : self.document.body.clientWidth;
	var h = (NS) ? self.innerHeight : self.document.body.clientHeight;
	w = img.width - w;
	h = img.height - h;
	if (!NS) h -= 94;
	self.resizeBy(w, h);

//	w = (NS) ? self.innerWidth : self.document.body.clientWidth;
//	h = (NS) ? self.innerHeight : self.document.body.clientHeight;
//	w = (screen.width - w) / 2;
//	h = (screen.height - h) / 2;
//	self.moveTo(w, h);
	self.focus();
}

