function sortBy(url,type) {
	document.location = url;
	document.menu.sort.value = type;
	document.menu.submit();
	return true;
}

function MM_showHideLayers() { //v1.2
  var i, visStr, args, theObj;
  args = MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) { //with arg triples (objNS,objIE,visStr)
    visStr   = args[i+2];
    if (navigator.appName == 'Netscape' && document.layers != null) {
      theObj = eval(args[i]);
      if (theObj) theObj.visibility = visStr;
    } else if (document.all != null) { //IE
      if (visStr == 'show') visStr = 'visible'; //convert vals
      if (visStr == 'hide') visStr = 'hidden';
      theObj = eval(args[i+1]);
      if (theObj) theObj.style.visibility = visStr;
  } }
}

function popViewer(url,width,height) {
	viewer = window.open(url,"popViewer","height=" + height + ",width=" + width + ",scrollbars=0,resizable=0,toolbar=0,status=0");
	viewer.focus();
}