function MM_reloadPage(init) {  //reloads the window if Nav4 resized
   if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
      document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
   else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_displayStatusMsg(msgStr) { //change status msg
  window.status=msgStr;
  document.MM_returnValue = true;
}
MM_displayStatusMsg("M & L Art Furniture Makers Ltd.");


function newImage(arg) { // load new image
   if (document.images) {
      rslt = new Image();
      rslt.src = arg;
      return rslt;
   }
}

var preloadFlag = false;
function changeImages() { // change images
   if (document.images && (preloadFlag == true)) {
      for (var i=0; i<changeImages.arguments.length; i+=2) {
         document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
      }
   }
}

function gotoPage() {
   pagenum = parseInt(document.pageform.gotopage.value, 10);
   totalpage = parseInt(document.pageform.maxpage.value, 10);
   if (isNaN(pagenum) || pagenum < 1 || pagenum > totalpage) {
      if (isNaN(pagenum)) {
         alert("Invalid Page Number.\n\nPlease enter a page number between 1 and "+totalpage+".");
      }
      else if (totalpage == 1) {
         alert("Page out of range.\n\nThere is only 1 page.");
      }
      else {
         alert("Page out of range.\n\nPlease enter a page number between 1 and "+totalpage+".");
      }
      return false;
   }
   document.pageform.action = document.pageform.action+String(pagenum);
   return true;
}

function checksearch() {
   if (document.quicksearchform.searchtext.value == "") {
         alert("Please enter something to search");
      return false;
   }
   return true;
}


/*******************************************
 * Disable Right-Click
 *******************************************/
var message="Function Disabled!";

function clickIE4(){
if (event.button==2){
//alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
//alert(message);
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("return false");
