	// Function to submit a HTML form into a Highslide iframe popup. 
 function submitToHighslide(form) { 

    // identify the submit button to start the animation from 
    var anchor;
		anchor = document.getElementById('imgsend');
   // open an expander and submit our form when the iframe is ready 
   hs.overrides.push('onAfterExpand'); 
   hs.htmlExpand(anchor, { 
      objectType: 'iframe', 
      src: 'about:blank', 
      width: 400, 
      height: 100, 
      onAfterExpand: function(expander) { 
         form.target = expander.iframe.name; 
         form.submit(); 
      } 
   }); 

   // return false to delay the sumbit until the iframe is ready 
   return false; 
}