<!--
function imageinit () {

  if ( num_images >= 0 ) {
    imageid = image [0];
    display = true ;
  }

  for ( var i = 0 ; i < num_images ; i++ ) {
    position [i] = i;
    tnail[i] = new Image (100,100);
    mains[i] = new Image (250,250);
  }

}
        
function image_swap ( num ) {
  if ( display == true && num_images > 0 ) {
    eval  ('document.getElementById("img' + num + '").src = tnail[' + current_main + '].src;');
    eval  ('document.getElementById("main").src = mains[' + position[num] + '].src;');
    imageid = image[position[num]]; 
    var tmp = position[num];
    position[num] = current_main;
    current_main = tmp; 
    document.getElementById("swapimage").innerHTML='<a target="popup" href="view_product_popup.php?productid=' + productid +';imageid=' + imageid + '" onclick="javascript:openPopup();"><img src="/icons/zoom.gif" width="25px" height="14px" border="0" alt="magnifier" title="click to magnify image"><\/a>';  }
}

function showpopupmessage () {
  alert ("Popup window suppressed. \n" +
         "\n" + 
         "Unfortunately, popup window suppression prevents this site from working properly " + 
         "and displaying the information you requested.  We recommend that you enable " +
         "the showing of popup windows for this site only so that you can view the full " +
         "details for this product.");
  return true;
}


function openPopup () { 
  var l,p,n,pid,iid;
  pid = (productid != undefined) ? productid : "";  
  iid = (imageid != undefined) ? imageid : "";  

  l = 'view_product_popup.php?productid=' + pid + '&imageid=' + iid ;
  p = 'popup' ;
  n = 'height=640,width=540,status=0,menubar=0,resizable=0,scrollbars=0';
 
  var success = window.open ( l , p, n );

  if (success) {
    return true;
  } else {
    showpopupmessage ();
  }
} 

function openPopupSymbol (sid) { 
  var l,p,n,sid;
  sid = (sid != undefined) ? sid : "";  

  l = 'explain_icon.php?suitabilityid=' + sid ;
  p = 'key' ;
  n = 'height=250,width=250,status=0,menubar=0,resizable=0,scrollbars=1';
 
  var success = window.open ( l , p, n );

  if (success) {
    return true;
  } else {
    showpopupmessage ();
  }
} 

function openPopupFeature (fid) { 
  var l,p,n,fid;
  fid = (fid != undefined) ? fid : "";  

  l = 'explain_feature.php?featureid=' + fid ;
  p = 'key' ;
  n = 'height=250,width=250,status=0,menubar=0,resizable=0,scrollbars=1';
 
  var success = window.open ( l , p, n );

  if (success) {
    return true;
  } else {
    showpopupmessage ();
  }
} 

//-->
