// JavaScript Document
function newWindow(url, height, width) {
	var nameW='HOME';
	var myWin = ":: HOME ::";
	var xTop = (screen.width) ? (screen.width-width)/2 : 0;
	var yTop = (screen.height) ? (screen.height-height)/2 : 0;		
	var myWin = window.open(url, nameW, 'height='+height+',width='+width+',scrollbars=0,resizable=0,menubar=0,toolbar=0,status=0,location=0,directories=0,left=' + xTop + ',top=' + yTop + '');
 myWin.focus();
}

function newWin(url, height, width) {
	var nameW='x';
	var myWin = "";
	var xTop = (screen.width) ? (screen.width-width)/2 : 0;
	var yTop = (screen.height) ? (screen.height-height)/2 : 0;		
	var myWin = window.open(url, nameW, 'height='+height+',width='+width+',scrollbars=1,resizable=0,menubar=0,toolbar=0,status=1,location=0,directories=0,left=' + xTop + ',top=' + yTop + '');
 myWin.focus();
}
function ShowImage(strImagePath, intImageWidth, intImageHeight)
{
	var ShowImageWin;
	var strName =  "ShowImages"
	var strFeatures;

	strFeatures = "dependent=yes,directories=no,location=no,menubar=no,resizable=yes,personalbar=no,scrollbars=no,titlebar=no,toolbar=no,screenX=0,screenY=0,top=0, left=0, width=" + intImageWidth.toString() + ", height=" + intImageHeight.toString()
	ShowImageWin = window.open(strImagePath, strName, strFeatures);
	ShowImageWin.focus();

	return false;
}