function OpenWindow(wnd,level){

  switch (level) {
    case 0: var path = ""; break;
    case 1: var path = "../"; break;
  }
  
  switch (wnd) {
    case "home":
                         Width = 540; Height = 320;
                         doOpen(Width,Height,path+"popups/delivered.htm");
                         break;
    case "requirements":
                         Width = 500; Height = 330;
                         doOpen(Width,Height,path+"popups/requirements.htm");
                         break;
    case "save_money":
                         Width = 500; Height = 360;
                         doOpen(Width,Height,path+"popups/save_money.htm");
                         break;						 
    case "save50":
                         Width = 636; Height = 470;
                         doOpen(Width,Height,path+"popups/save50/index.htm");
                         break;
    case "discount":
                         Width = 460; Height = 260;
                         doOpen(Width,Height,path+"order/popups/discount.htm");
                         break;
						 
  }

}


function doOpen(w,h,page) {
    Left = (screen.width-w)/2;
    Top = (screen.height-h)/2;
    Params = "top=" + Top + ",left=" + Left + ",width=" + w + ",height=" + h + ",scrollbars=no,toolbar=no,menubar=no,titlebar=no,location=no";
    Wnd = window.open(page,"popup",Params);
    Wnd.focus();
}

