function popDialog(url, winName, winWidth, winHeight, scrollbars, resize, status) {// put up a dialog box	var x = parseInt((screen.availWidth - winWidth) / 2);	var y = parseInt((screen.availHeight - winHeight) / 2);	if (status) {		attributes = 'status=' + status + ',resizable=';		if (status.toLowerCase() == 'yes') {y += 20;}		} else {		attributes = 'status=no,resizable=';		}	if (resize) {		attributes = attributes + resize + ',';		} else {		attributes = attributes + 'no,';		}	attributes = attributes + 'scrollbars=';	if (scrollbars) {		attributes = attributes + scrollbars + ',';		} else {		attributes = attributes + 'no,';		}	attributes = attributes + 'screenX=' + x + ',left=' + x + ',screenY=' + y + ',top=' + y ;	attributes = attributes + ',width=' + winWidth + ' ,height=' + winHeight;	return window.open(url, winName, attributes)}function pubType() {	var pub;	if (f.ProductType.value == "E") {		pub = 'event;'	} else if (f.ProductType.value == "W") {		pub = 'web site';	} else {		pub = 'publication';	}	return pub;}function doSimpleSearch() {	//products	var p = '';	if (f.ptype[0].checked) {p += 'P';}	if (f.ptype[1].checked) {p += 'E';}	if (f.ptype[2].checked) {p += 'W';}	if (p == '') {		alert('Please select one or more IDG product types.');		return;	}	if (f.SText.value == '') {return;}	var tmp = replaceSubstring(replaceSubstring(f.SText.value, '"', ''), '  ', ' ');	var tmparray = tmp.split(' ');	url = f.dbpath.value + '/(SimpleSearchAgent)?OpenAgent&query=';	if (f.stype[0].checked)  {		tmp = '("' + tmparray.join('") AND ("') + '")';	} else {		tmp = '("' + tmparray.join('") OR ("') + '")';	}	url += escape('(' + tmp + ')') + '&producttype=' + p;//	alert(url);	location.href = url;}function replaceSubstring (inputString, badString, goodString, caseSensitive) {//Source: Domino PowerMagazine, April 2000 http://www.dominopower.com/	fixedReplace = " ";	UI = inputString;	UB = badString;	if ((caseSensitive !=1) && (caseSensitive != true)) {		UI = inputString.toUpperCase();		UB = badString.toUpperCase();	}	badEnd = -1;	badLoc = UI.indexOf(UB);	if (badLoc != -1) {		for (x=1; (badLoc != -1); x++) {			fixedReplace = fixedReplace + inputString.substring((badEnd + 1), badLoc) + goodString			badEnd = badLoc + UB.length - 1;			badLoc = UI.indexOf(UB, (badLoc + 1));		}		fixedReplace = fixedReplace + inputString.substring((badEnd + 1), inputString.length);	} else {fixedReplace = inputString;}	return fixedReplace;}