function Update(){
//@copyright 2004 Lucia Liljegren
  p=document.Sock;
  var pester;
 
    p.tooFewStitches.value = "Good. It looks like your javascript, you are accepting cookies, and you are running this from www.thedietdiary.com."
    // Find design lengths:
    p.FootLength.value = 0.01 * Math.round((100-eval(p.lengthReduc.value)) * eval(p.RealFootLength.value));
    p.AnkleCircumf.value = 0.01* Math.round((100-eval(p.circRed.value)) * eval(p.RealAnkleCircumf.value) );
    
    p.javaScriptEnabled.value = "ok";
    var now= new Date;
    p.createTime.value = now.getTime();

    // guess for foot length based on shoe size.   
    var extra;
     var stdRatio = 1.8;
     
	if(p.range.selectedIndex == 0){extra = 2;}
	else if(p.range.selectedIndex == 1){ extra = 0;}
	else{extra = -12; }
    
    if(isNaN(p.size.value)){p.size.value = 1;}
    else{
       p.size.value = Math.round(2*eval(p.size.value)) /2
        }
    
    var normSize= eval(p.size.value)+extra;
    stdLength = Math.round( 100*(6.8 + normSize/3) ) /100;
    p.stdLength.value = Math.round(100*stdLength)/100; 
    p.stdWidth.value = stdWidth=Math.round( eval(p.stdLength.value)/stdRatio * 100)/100;

}
//=================================================
