
// This is a simple wrapper function that will set the minimum and maximum values for the points.htm
// form.  It will also cover Netscape's failings and assign the appropriate value to the Carletonname
// property.  (No such coverage is needed for IE 5 as you are able to set properties within the form
// with greater flexibility than Netscape currently supports.)

function wrap(f)
{

    ns4 = (document.layers)? true:false // Netscape check
    f.txtRatewo.min = 0.0;
    f.txtRatewp.min = 0.0;
    f.txtNumpt.min = 0.0;
    f.txtTerm.min = 0;
    f.txtcash.min = 0.00;
    if (ns4)
    {
      for (i = 0; i <f.elements.length; i++)
      {
      	e = f.elements[i];
	switch (e.name)
	{
	  case "txtcash" :
	    e.Carletonname = "LoanAmt";
	    break;
	  case "txtNumpt" :
	    e.Carletonname = "NumPts";
	    break;
	  case "txtRatewo":
	    e.Carletonname = "RatewoPts";
	    break;
	  case "txtRatewp" :
	    e.Carletonname = "RatewPts";
	    break;
	  case "txtTerm" :
	    e.Carletonname = "Term";
	    break;
	}
      }
    }
    f.txtRatewo.optional = false;
    f.txtRatewp.optional = false;
    f.txtNumpt.optional = false;
    f.txtTerm.optional = false;
    f.txtcash.optional = false;
    return verify(f);
}	
