function openIt(img, wd, ht) {
	wd += 20;
	ht += 25;
	var w = screen.width;			// current SCREEN width
	var h = screen.height;			// current SCREEN height
	var w2 = w/2;				// finds horizontal center - debugging purposes	
	var h2 = h/2;				// finds vertical center - debugging purposes
	var posL = (w2)-(wd/2);			// calculates Left position of new window
	var posT = (h2)-(ht/2);			// calculates Right position of new window
	var settings = "fullscreen=no,toolbar=no,status=no,menubar=no,scrollbars=no,resizable=no,directories=no,location=no,width=" + wd + ",height=" + ht + ",left=" + posL + ",top=" + posT;
	var nwin = window.open(img, "", settings);
	return false;
}

function openItR(img, wd, ht) {
	var w = screen.width;			// current SCREEN width
	var h = screen.height;			// current SCREEN height
	var w2 = w/2;				// finds horizontal center - debugging purposes	
	var h2 = h/2;				// finds vertical center - debugging purposes
	var posL = (w2)-(wd/2);			// calculates Left position of new window
	var posT = (h2)-(ht/2);			// calculates Right position of new window
	var settings = "fullscreen=no,toolbar=no,status=no,menubar=no,scrollbars=yes,resizable=yes,directories=no,location=no,width=" + wd + ",height=" + ht + ",left=" + posL + ",top=" + posT;
	var nwin = window.open(img, "", settings);
	return false;
}

function openItS(img, wd, ht) {
	wd += 20;
	ht += 25;
	var w = screen.width;			// current SCREEN width
	var h = screen.height;			// current SCREEN height
	var w2 = w/2;				// finds horizontal center - debugging purposes	
	var h2 = h/2;				// finds vertical center - debugging purposes
	var posL = (w2)-(wd/2);			// calculates Left position of new window
	var posT = (h2)-(ht/2);			// calculates Right position of new window
	var settings = "fullscreen=no,toolbar=no,status=no,menubar=no,scrollbars=yes,resizable=no,directories=no,location=no,width=" + wd + ",height=" + ht + ",left=" + posL + ",top=" + posT;
	var nwin = window.open(img, "", settings);
	return false;
}
