function Dialog(what) {
	var URL = "";
	var pos;

	if (document.execCommand) {
		if (what == "SaveAs") {
			document.execCommand(what);
		} else if (what == "Print") {
			window.print();
		} else if (what == "Email") {
			URL = location.href;
			pos = URL.indexOf("enlargement");

			if (pos > 0) {
				URL += "&f=e"
			}

			window.location.href = "mailto:?SUBJECT=Dynarex Corporation&BODY=" + escape(URL);
		}
	} else {
		alert('Feature available only in Internet Exlorer 4.0 and later.');
	}
}

function openwin(url, winname, width, height, scrollable)
{

	var left = Math.floor( (screen.width - width) / 2);
	var top = Math.floor( (screen.height - height) / 2);
	var winParams = "top=" + top + ",left=" + left + ",height=" + height + ",width=" + width;
	var newwin = window.open(url,winname,"scrollbars="+scrollable+",menubar=no,resizable=no,toolbar=no,location=no,status=no,"+winParams); 

	if (window.focus) {
		newwin.focus();
	}
	
}

function loadparent(url, closeSelf)
{
	self.opener.location = url;
	if (closeSelf)
		self.close();
}

function btnSearch_Click()
{

	document.frmSearch.submit();
	return false;

}

function preloadImages() {
	if (document.images) {
		over_technicaldata = newImage(/*URL*/'images/technicaldataover.gif');
		down_technicaldata = newImage(/*URL*/'images/technicaldataover.gif');
		over_navigationmenu = newImage(/*URL*/'images/navigationmenuover.gif');
		down_navigationmenu = newImage(/*URL*/'images/navigationmenuover.gif');
		preloadFlag = true;
	}
}

