//	#	#	#	#	#	#	#	#	#
//   Purpose: JavaScript routines for WPM website.
//    Author: Sarand Ltd Jan-09
//	#	#	#	#	#	#	#	#	#
   function DoNavForm(form)
   {
     var URL = document.form.site.options[document.form.site.selectedIndex].value;
     window.location.href = URL;
   }
   function ResizeFrameToContent(id,height)
   {
     height=parseInt(height)+12;
     if(!isFinite(height)||height<20)return;
     try
     {
       height=Math.max(300,height);
       frame=getElement(id);if(!frame)return;
       if(frame.style)frame.style.height=height+'px';
       else frame.setAttribute('height',height+'px');
    }catch(err){}
}
//	#	#	#	#	#	#	#	#	#