	function openWindow(a,b,c,d,x) {
	// a = width
	// b = height
	// c = url
	// d = windowname
	// x = window properties

	var aheight = ('height=');
	var aline = (aheight + b);
	var bwidth = ('width=');
	var bline = (bwidth + a);
	var commachar = (',');
	var size = (aline + commachar + bline);

	// select a value for the attributes
	// 0 = nothing and is the default
	// 1 = scrollbars only
	// 2 = scrollbars and location (url)
	// 3 = scrollbars and toolbar
	// 4 = scrollbars and toolbar and location (url)
	// 5 = resize ok nothing = default

	if (x == 0) {
		window.open(c, d, size);
	} else if (x == 1) {
		one = (size + ',scrollbars=yes,');
		window.open(c, d, one);
	} else if (x == 2) {
		two = (size+ ',scrollbars=yes,location=yes,');
		window.open(c, d, two);
	} else if (x == 3) {
		three = (size + ',scrollbars=yes,toolbar=yes');
		window.open(c, d, three);
	} else if (x == 4) {
		four = (size + ',scrollbars=yes,location=yes,toolbar=yes');
		window.open(c,d, four);
	} else if (x == 5) {
		four = (size + ',resize=yes');
		window.open(c,d, four);
	} else if (x == 6) {
		one = (size + ',resize=yes,scrollbars=yes');
		window.open(c, d, one);		
	} else end
	}
