function openPopupStandard( url, type )
{
  var w = 0;
  var h = 0;
  var r = '1';
  var s = '0';
  
  switch ( type )
  {
    case 1:
      w = 690;
      h = 590;
      r = '1';
      s = '1';
      break;
    case 2:
      w = 420;
      h = 520;
      r = '0';
      s = '0';
      break;
    default:
      return;
  }
  var l = Math.floor((screen.width-w)/2);
  var t = Math.floor((screen.height-h)/2);
  popupWindow = window.open( url, null, 'width=' + w + ',height=' + h + ",top=" + t + ",left=" + l + ',status=0,toolbar=0,location=0,menubar=0,directories=0,resizable=' + r + ',scrollbars=' + s );
  popupWindow.focus();
}



function selectPage(page)
  {
	  
 		currentSrc = page.src;
    prefix = currentSrc.slice(0,-4);
    lString = currentSrc.length;
    suffix = currentSrc.slice(-6,lString);
    newSrc = prefix + '_h.gif';
    origSrc = prefix.slice(0,-2) + ".gif";
    
    if(suffix == "_h.gif")
      {
        page.src = origSrc;
        
      }
      
    else{
    
      page.src = newSrc;
    
    }  
 
    
  }

