function launchPopUpWindow(sURL, sName, iWidth, iHeight/* quadrant location using integer, boolean true or false for scroll */) {
	if (launchPopUpWindow.arguments.length > 4) {		//There are 9 quadrants; 3 on the top of the user's screen, 3 in middle, 3 in bottom.
		iQuadrantID = launchPopUpWindow.arguments[4];	//Default quadrant is 5.
	} else {
		iQuadrantID = 5;
	}
	if (launchPopUpWindow.arguments.length > 5) {
		bScroll = launchPopUpWindow.arguments[5];
	} else {
		bScroll = false;
	}
	if (iHeight > screen.height) {
		if (bScroll){
			iHeight = screen.availHeight;
		} else {
			bScroll = true;
			iHeight = screen.availHeight;
			iWidth = iWidth + 20;
		}
	}
	if (iWidth > screen.width) {
		if (bScroll){
			iWidth = screen.availWidth;
		} else {
			iWidth = screen.availWidth;
			bScroll = true;
		}
	}
	iTopX = 0;
	iTopY = 0;
	switch(iQuadrantID){
		case 1:
			iTopX = 0;
			iTopY = 0;
			break;
		case 2:
			iTopX = (screen.width / 2) - (iWidth / 2);
			iTopY = 0;
			break;
		case 3:
			iTopX = screen.width - iWidth;
			iTopY = 0;
			break;
		case 4:
			iTopX = 0;
			iTopY = (screen.height / 2) - (iHeight / 2);
			break;
		case 5:
			iTopX = (screen.width / 2) - (iWidth / 2);
			iTopY = (screen.height / 2) - (iHeight / 2);
			break;
		case 6:
			iTopX = screen.width - iWidth;
			iTopY = (screen.height / 2) - (iHeight / 2);
			break;
		case 7:
			iTopX = 0
			iTopY = screen.height - iHeight;
			break;
		case 8:
			iTopX = (screen.width / 2) - (iWidth / 2);
			iTopY = screen.height - iHeight;
			break;
		case 9:
			iTopX = screen.width - iWidth;
			iTopY = screen.height - iHeight;
			break;
		default:
			iTopX = (screen.width / 2) - (iWidth / 2);
			iTopY = (screen.height / 2) - (iHeight / 2);
			break;
	}
	if (bScroll) {
		sScrollOption = "yes";
	} else {
		sScrollOption = "no";
	}
	mywin=window.open(sURL, sName,'width='+iWidth+',height='+iHeight+',top='+iTopY+',left='+iTopX+',toolbar=no,scrollbars='+sScrollOption+',resizable=no,menubar=no,status=no,directories=no,location=no');
	mywin.focus();
	return mywin;
}
