// V8 Mk-4 Version V4.19
// Radio Buttons
function rdclk(imgid, newimage, radioid){			// called from Radio button or Icon onclick
  if ( newimage )
    {
    if ( document.getElementById('im-' + imgid) )
    	{
    	document.getElementById('im-' + imgid).src = newimage;	// swap the image
    	}
    }	
  if ( radioid )						// if 3rd param we're calling from Icon onclick
    {
    document.getElementById('rd-' + imgid + '_' + radioid).checked = true;	// check the appropriate button
    }
}
// Drop Down Lists 
function selectimage(selthis, imgref){				// called from onchange event in the <SELECT..> statement
  var thisimg = selthis.options[selthis.selectedIndex].id;	// extract the image from option ID
  if ( thisimg != '' ) 
    {
    var imgref = 'im-' + imgref;				// SELECT TITLE has the main image id
    if (document.getElementById(imgref))			// only if main image exists
      {
      document.getElementById(imgref).src = thisimg;		// replace main image with option image
      }
    }
}

