function priceCalculation() {    
 // Declare Variables
 //------------------
 var Width;
 var Height;
 var DivRail;
 // Set Variables
 //--------------
 Width=document.mto.prodopt2.selectedIndex;
 Width=document.mto.prodopt2.options[Width].text;
 Width=parseFloat(Width.replace(/\x22$/g,""));
 //if (isNaN(Width)) { Width=0;}
 Height=document.mto.prodopt3.selectedIndex;
     Height=document.mto.prodopt3.options[Height].text;
 Height=parseFloat(Height.replace(/\x22$/g,""));
 //if (isNaN(Height)) { Height=0;}
 DivRail=document.mto.prodopt6.selectedIndex;
     DivRail=document.mto.prodopt6.options[DivRail].text;
 if (DivRail == "Yes") 
 { 
  DivRail=parseFloat(1); 
 }
 else
 {
  DivRail=parseFloat(0);
 }
 //calculate Price
 //---------------
 if (!isNaN(Width) && !isNaN(Height)) 
 {        
  Price=Math.round(((Width*Height*0.051)+41)*100)/100;
  Price=Price+DivRail;        
  Price=Price.toString().replace(/(\.\d)$/g,"$10");        
  document.mto.Price.value="$"+Price;        
 }    
 else 
 {        
  document.mto.Price.value='';         
 }    
 return true;    
} 


