function bookmarkIt() {
	// Pass this function either 0 or 2 parameters
	// If passed zero parameters,
	//   it will write the bookmark with the current page's window.location and document.title values.
	// If passed two values,
	//   it will write the first as the location and the second as the descriptive text.
	var bookmarkArgsCount = bookmarkIt.arguments.length;
	if (bookmarkArgsCount!=0 && bookmarkArgsCount!=2) {
		alert('Error:\nWrong number of arguments passed to function');
		return false;
	}
	var bookmarkItLocation;
	var bookmarkItText;
	if (bookmarkArgsCount == 2) {
		arrBookmarkItArgs = bookmarkIt.arguments;
		bookmarkItLocation = arrBookmarkItArgs[0];
		bookmarkItText = arrBookmarkItArgs[1];
	} else {
		bookmarkItLocation = window.location;
		bookmarkItText = document.title;
	} 
	if(window.external){
		window.external.AddFavorite(bookmarkItLocation, bookmarkItText);
	} else {
		alert("Sorry.  Your browser doesn't support this feature.\nPlease use the bookmark feature of your browser to save the location of this page.");
	}
}

function brwWindowOpen(winURL, winName, width, height, top, left, scrollbars, menubar, toolbar, resizable){
	var properties = ""
	if (width > 0) properties += 'WIDTH=' + width + ',';
	if (height > 0) properties += 'HEIGHT=' + height + ',';
	if (top > -1) properties += 'TOP=' + top + ',';
	if (left > -1) properties += 'LEFT=' + left + ',';
	if (scrollbars) properties += 'scrollbars' + ',';
	if (menubar) properties += 'menubar' + ',';
	if (toolbar) properties += 'toolbar' + ',';
	if (resizable) properties += 'resizable';
	var newWindow = window.open(winURL, winName, properties);
	newWindow.focus();
}

function pop_matrix(){
	brwWindowOpen('./fatty_acid_matrix.htm', 'matrix', 794, 660, -1, -1, true, false, false, true);
}
function pop_tellafriend(){
	brwWindowOpen('./tellafriend.asp', 'tellafriend', 372, 460, -1, -1, false, false, false, false);
}
function pop_privacy(){
	brwWindowOpen('./privacy.htm', 'privacy', 550, 600, -1, -1, true, false, false, true);
}