<!-- 
 // Purpose	: This javascript is to create a pop up window for help menu system
 // Author	: Philip Ng
 // Date	: 23 FEB 01
 
 function CreateWindow(URL, strName, intSizeOption) {
 // this function is for openning new window as well as maximizing the width & height
	var intWidth;	// store user's computer max. screen width
	var intHeight;	// store user's computer max. screen height
	var popWin;		// store new window object
 
	if (intSizeOption == 1) {
	// help window system
 		intWidth = 800;
 		intHeight = 600;
	} else if (intSizeOption == 2) {
	// transactions detail
 		intWidth = 550;
 		intHeight = 400;
	} else if (intSizeOption == 3) {
	// cookie window
 		intWidth = 400;
 		intHeight = 200;
	} else if (intSizeOption == 4) {
	// cookie window
 		intWidth = 800;
 		intHeight = 600;
	} else {
		intWidth = screen.width;		// detect width size
		intHeight = screen.height;		// detect height size
	}
	
	if (strName == '')
		strName = 'HelpWindow';
	
	// creating new window
	var	myBars = 'directories=no, location=no, menubar=no, status=no';
	myBars += ', titlebar=no, toolbar=no';
	var myOptions = 'scrollbars=yes, width=' + intWidth + ' , height=' + intHeight + ', resizable=yes, top=' + ((screen.height / 2) - 300) + ', left=' + ((screen.width / 2) - 400);
	var myFeatures = myBars + ',' + myOptions;
	
	// open new window
	popWin = window.open(URL, strName, myFeatures);
	
 }
 
//-->