function Popup(strURL, strName, intWidth, intHeight, strStatus, strScroll, strResize, strToolbar) {
	if (!strURL) {
		alert('A link must be specified when using the Popup function.');
	}
	else {
		if (!strName) strName = 'popup';
		if (!intWidth) intWidth = 600;
		if (!intHeight) intHeight = 400;
		if (!strStatus) strStatus = 'yes';
		if (!strScroll) strScroll = 'yes';
		if (!strResize) strResize = 'yes';
		if (!strToolbar) strToolbar = 'no';
		var objWindow = window.open(strURL, strName, 'width=' + intWidth + ',height=' + intHeight + ',status=' + strStatus + ',scrollbars=' + strScroll + ',resizable=' + strResize + ',toolbar=' + strToolbar);
		objWindow.focus();
	}
}

function ClearSetValue(objField, blnClear) {
	if (blnClear) {
		if (objField.value == objField.defaultValue) objField.value = '';
	}
	else {
		if (objField.value == '') objField.value = objField.defaultValue;
	}
}

function ProductBrowse(blnType) {
	document.getElementById('tblBrands').style.display = (blnType ? 'none' : '');
	document.getElementById('tblTypes').style.display = (blnType ? '' : 'none');
}
