var popUpWin;
var isIE3;
var isIE3 = (navigator.appVersion.indexOf("MSIE 3") != -1) ? true : false;

function openWindow(url,arg2,arg3) {

var dimensions;

	if (arguments.length==2) {

		// * add more flagNames here *

		if (arg2=="anyFlagName1") {
		dimensions = "width=200,height=200";
		}

		else if (arg2=="anyFlagName2") {
		dimensions = "width=300,height=300";
		}

	// condition is true if width and height are specified
	} else if (arguments.length==3) {
	dimensions = "width=" + arg2 + ",height=" + arg3;

	// DEFAULT condition is true if only url is specified
	} else {
	dimensions = "width=700,height=700";
	}

var other = ",channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=0,scrollbars=1,status=0,toolbar=0";

var attributes = dimensions + other;

popUpWin = window.open(url,popUpWin,attributes,"pop");
	if (popUpWin.opener == null) {
		popUpWin.opener = window;
	}
	if (navigator.appName == 'Netscape') {
	popUpWin.focus();
	}
}

function closeWindow() {

	if (isIE3) {
		popUpWin = window.open("","TechSpecs","toolbar=no,location=0,directories=0,status=no,menubar=no,scrollbars=yes,resizable=no,height=1,width=1")
	}

	if (popUpWin && !popUpWin.closed) {
		popUpWin.close();
	}
	popUpWin = "";
}