var message="";

function clickIE()
{
   if(document.all)
   {
      (message);
      return false;
   }
}

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

if(document.layers)
{
   document.captureEvents(Event.MOUSEDOWN);
   document.onmousedown = clickNS;
}
else
{
   document.onmouseup = clickNS;
   document.oncontextmenu=clickIE;
}
document.oncontextmenu = new Function("return false")

function openCenteredWindow(url, height, width, name, parms)
{
   var left = Math.floor( (screen.width - width) / 2);
   var top = Math.floor( (screen.height - height) / 2);
   var winParms = "top=" + top + ",left=" + left + ",height=" + height + ",width=" + width + ",scrollbars=no";
   if (parms) { winParms += "," + parms; }
   var win = window.open(url, name, winParms);
   if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function externalLink(url)
{
   alert("You are now leaving the official Milestones Children's Consignment Web site. Opinions and statements presented on any Web site other than the official Milestones Web site may not represent the official policies or opinions of the Consignment store.  Milestones will honor only those policies or procedures found on the official Web site.")
   var win = window.open(url);
   if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
