function popupDiagrams(url) {
  newwindow = window.open (url, 'name', "location=0,status=0,scrollbars=0,resizable=0,directories=0,width=665,height=485");
  if (window.focus) { newwindow.focus() }
  return false;
}

function rompPopUp(url) {
  newwindow = window.open (url, 'name', "location=0,status=0,scrollbars=0,resizable=1");
  if (window.focus) { newwindow.focus() }
  return false;
}

function popupBlurb(url) {
  newwindow = window.open (url, 'name', "location=0,status=0,scrollbars=0,resizable=0,directories=0,width=465,height=325");
  if (window.focus) { newwindow.focus() }
  return false;
}

function popupShop(url) {
  newwindow = window.open (url, 'name', "location=0,status=0,scrollbars=1,resizable=0,directories=0,width=300,height=400,left=300,top=150");
  if (window.focus) { newwindow.focus() }
  return false;
}

function popupNew(url) {
  newwindow = window.open (url, 'name');
  if (window.focus) { newwindow.focus() }
  return false;
}

function partsTab() {
  document.getElementById('partsTab').className = "selected"
//  document.getElementById('GiftTab').className = ""
  document.getElementById('innoTab').className = ""
  document.getElementById('stewTab').className = ""
  document.getElementById('RompyTab').className = ""
}

/* 
function GiftTab() {
document.getElementById('partsTab').className = ""
document.getElementById('GiftTab').className = "selected"
document.getElementById('innoTab').className = ""
document.getElementById('stewTab').className = ""
document.getElementById('RompyTab').className = ""
}
*/

function innoTab() {
  document.getElementById('partsTab').className = ""
//  document.getElementById('GiftTab').className = ""
  document.getElementById('innoTab').className = "selected"
  document.getElementById('stewTab').className = ""
  document.getElementById('RompyTab').className = ""
}

function stewTab() {
  document.getElementById('partsTab').className = ""
//  document.getElementById('GiftTab').className = ""
  document.getElementById('innoTab').className = ""
  document.getElementById('stewTab').className = "selected"
  document.getElementById('RompyTab').className = ""
}

function RompyTab() {
  document.getElementById('partsTab').className = ""
//  document.getElementById('GiftTab').className = ""
  document.getElementById('innoTab').className = ""
  document.getElementById('stewTab').className = ""
  document.getElementById('RompyTab').className = "selected"
}

function CngClass(obj){
 if (Lst) Lst.className='';
 obj.className='selected';
 Lst=obj;
}

function showPageElement(what)  
{  
 var obj = typeof what == 'object'  
? what : document.getElementById(what);  
 
 obj.style.display = 'block';  
  return false;  
}  
  
function hidePageElement(what)  
 {  
   var obj = typeof what == 'object'  
       ? what : document.getElementById(what);  
 
   obj.style.display = 'none';  
   return false;  
 }  
  
 function togglePageElementVisibility(what)  
 {  
   var obj = typeof what == 'object'  
       ? what : document.getElementById(what);  
 
   if (obj.style.display == 'none')  
        obj.style.display = 'block';  
    else  
        obj.style.display = 'none';  
    return false;  
 }