var SiteBase='/site/rm/home.nsf/';
var PageView = 'pages';
var NewsView = 'news';
var DescriptionsView = 'descriptions';

function openPage( page ) {
  var view = PageView;
  this.location.href = SiteBase + view + "/" + page;
}

function openNews( code ) {
  var view = NewsView;
  location.href = SiteBase +view+"/" + code;
}

function openView( view ) {
  location.href = SiteBase + view;
}

function openDescriptionByCode( code ) {
  var view = DescriptionsView;
  location.href = SiteBase + view + "/" + code;
}

var newWindow = null;
function openGallery(loc) {
  var par = "height=420,width=520,left=100,top=100,toolbar=no,status=no,menubar=no";
  newWindow = window.open (loc, "Gallery", par);
  newWindow.focus();
}

function openDescrParam(loc) {
  var par = "height=220,width=320,left=100,top=100,toolbar=no,status=no,menubar=no";
  newWindow = window.open (loc, "DescrParam", par);
  newWindow.focus();
}

function show_compare(prod_id) {
  cw = window.open('/site/rm/reg.nsf/Compare?openAgent&prod_id='+prod_id, 'Compare', 'width=550,height=350,resizable=yes,directories=no,status=no,toolbar=no,menubar=1,location=no,scrollbars=yes');
  cw.focus();
}

function show_parent(link) {
  if(window.opener){
    window.opener.location.href = link;
    window.opener.focus();
  }
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
