
	function init(){
	}
	function doweight (form)
	{
	
	  var convfact, vol, volw, b, v, fweight, unit;
	  convfact = form.div.value;
	  vol = form.length.value * form.width.value * form.height.value;

	  volw =  vol / form.div.value;
	  b = volw - parseInt( volw );
	  //ss1 = form.int_val.value;
	  //ss2 = form.dom_val.value;
	  if( b <= .5 && 0 < b )
	  {
	    c=1;		// if Kg go to next pound or half Kilo
	  }
	  else // if( (.5 < b) && (b < 1 ) )
	  {
	    c=1;		// if Lbs go to next pound
	  }
	  if( b==0 ) c=0;
	  fweight = volw - b + c;
	  if( vol != 0 && ( isNaN( fweight ) || fweight < 1 ) ) fweight = 1;
	  if (form.units[0].checked)
	  {
	     unit = " Pound(s)";
	  }
	  else
	  {
	     unit = " Kilogram(s)";
	  }
	  form.answer.value = parseFloat(fweight)+unit;
	  
	  
	  return 1;
	}

	function changetype(element)
	{
	  var unit, convfact, form, type;
	  form=element.form;
	  if (form.units[0].checked)
	  {
	     unit = "imp";
	  }
	  else
	  {
	     unit = "met";
	  }
	  type=element.value;

	  if( type == "dom" ) 			// if domestic
	  {
	    if (unit == "imp")
	    {
	       form.dom_val.value=194;
		   convfact = form.dom_val.value;
		   
	    }
	    else
	    {
	       form.dom_val.value=7012;
		   convfact = form.dom_val.value;
	    }
	  }
	  else 					// if International
	  {
	    if (unit == "imp")
	    {
	       form.int_val.value=166;
		   convfact = form.int_val.value;
	    }
	    else
	    {
	       form.int_val.value=6000;
		   convfact = form.int_val.value;
	    }
	  }
	  form.div.value=convfact;
	  //doweight(form);
	}
    
	 function changetext(element)
	{
	  var unit, convfact, form, type;
	  form=element.form;
	  if (form.units[0].checked)
	  {
	     unit = "imp";
	  }
	  else
	  {
	     unit = "met";
	  }
	 
	  type=(form.pkgtype[0].checked);
      // document.write(type);
	  if( type == 1 ) 			// if domestic
	  {
	    if (unit == "imp")
	    {
	       
		   convfact = form.dom_val.value;
		   
	    }
	    else
	    {
	       
		   convfact = form.dom_val.value;
	    }
	  }
	  else 					// if International
	  {
	    if (unit == "imp")
	    {
	       
		   convfact = form.int_val.value;
	    }
	    else
	    {
	      
		   convfact = form.int_val.value;
	    }
	  }
	  form.div.value=convfact;
	  //doweight(form);
	}

   

	function changeunits(element)
	{
	  var unit, convfact, form, type, conv;
	  form=element.form;
	  if (form.pkgtype[0].checked)
	  {
	     type = "dom";
	  }
	  else
	  {
	     type = "int";
	  }
	  unit=element.value;
	  conv=1;
      
	  if( unit == "imp" )
	  {
	    //lenunt="in.gif";
	    //wgtunt="lb.gif";
	    if (type == "dom")
	    {
	      form.dom_val.value=194;
		  convfact = 194;
	    }
	    else
	    {
	       form.int_val.value=166;
		   convfact = 166;
	    }
	  }
	  else
	  {
	    //lenunt="cms.gif";
	    //wgtunt="kg.gif";
	    if (type == "dom")
	    {
	       form.dom_val.value=7012;
		   convfact = 7012;
		   
	    }
	    else
	    {
	       form.int_val.value=6000;
		   convfact = 6000;
		   
	    }
	  }
	  //document.images["LENIM"].src=document.volweight.ImagePath.value +lenunt;
	  //document.images["HIGIM"].src=document.volweight.ImagePath.value+lenunt;
	  //document.images["WIDIM"].src=document.volweight.ImagePath.value+lenunt;
	  //document.images["VOLIM"].src=document.volweight.ImagePath.value+wgtunt;
	  form.div.value=convfact;
	  //doweight(form);
	}
	