<!--
var empty_states = new Array(
'', 'Select your country first'
);

var us_states = new Array(
'',									 'Please choose',
'AK',                'Alaska',
'AL',                'Alabama',
'AR',                'Arkansas',
'AZ',                'Arizona',
'CA',                'California',
'CO',                'Colorado',
'CT',                'Connecticut',
'DC',                'District of Columbia',
'DE',                'Delaware',
'FL',                'Florida',
'GA',                'Georgia',
'HI',                'Hawaii',
'IA',                'Iowa',
'ID',                'Idaho',
'IL',                'Illinois',
'IN',                'Indiana',
'KS',                'Kansas',
'KY',                'Kentucky',
'LA',                'Louisiana',
'MA',                'Massachusetts',
'MD',                'Maryland',
'ME',                'Maine',
'MI',                'Michigan',
'MN',                'Minnesota',
'MO',                'Missouri',
'MS',                'Mississippi',
'MT',                'Montana',
'NC',                'North Carolina',
'ND',                'North Dakota',
'NE',                'Nebraska',
'NH',                'New Hampshire',
'NJ',                'New Jersey',
'NM',                'New Mexico',
'NV',                'Nevada',
'NY',                'New York',
'OH',                'Ohio',
'OK',                'Oklahoma',
'OR',                'Oregon',
'Ot',                'Other',
'PA',                'Pennsylvania',
'PR',                'Puerto Rico',
'RI',                'Rhode Island',
'SC',                'South Carolina',
'SD',                'South Dakota',
'TN',                'Tennessee',
'TX',                'Texas',
'UT',                'Utah',
'VA',                'Virginia',
'VT',                'Vermont',
'WA',                'Washington',
'WI',                'Wisconsin',
'WV',                'West Virginia',
'WY',                'Wyoming'
);

var ca_states = new Array(
'', 'Please choose',
'AB', 'Alberta',
'BC', 'British Columbia',
'MB', 'Manitoba',
'NB', 'New Brunswick',
'NL', 'Newfoundland and Labrador',
'NS', 'Nova Scotia',
'ON', 'Ontario',
'PE', 'Prince Edward Island',
'QC', 'Quebec',
'SK', 'Saskatchewan'
);

function getObj(name)
{
  if (document.getElementById)
  {
  	this.obj = document.getElementById(name);
	this.style = document.getElementById(name).style;
  }
  else if (document.all)
  {
	this.obj = document.all[name];
	this.style = document.all[name].style;
  }
  else if (document.layers)
  {
   	this.obj = document.layers[name];
   	this.style = document.layers[name];
  }
}

function ch_states(state, obj)
{
	var obox = new getObj(obj);
	var box = obox.obj;
	
	if(state=="US"){
	  box.options.length = 0;
	  var boxindex =0;
	  for(i=0;i<us_states.length;i+=2){
	    box.options[boxindex++] = new Option(us_states[i+1],us_states[i]);
	  }
  } else if (state=="CN") {
	  box.options.length = 0;
	  var boxindex =0;
	  for(i=0;i<ca_states.length;i+=2){
	    box.options[boxindex++] = new Option(ca_states[i+1],ca_states[i]);
	  }
  } else {
	  box.options.length = 0;
	  var boxindex =0;
	  for(i=0;i<empty_states.length;i+=2){
	    box.options[boxindex++] = new Option(empty_states[i+1],empty_states[i]);
	  }
	}
}

function p_states(state, obj, sel)
{
	var obox = new getObj(obj);
	var box = obox.obj;
	
	if(state=="US"){
	  box.options.length = 0;
	  var boxindex =0;
	  for(i=0;i<us_states.length;i+=2){
	    box.options[boxindex++] = new Option(us_states[i+1],us_states[i]);
	    if(box.options[boxindex-1].value == sel){
	     	box.options[boxindex-1].selected = true;
	    }
	  }
  } else if(state=="CN") {
	  box.options.length = 0;
	  var boxindex =0;
	  for(i=0;i<ca_states.length;i+=2){
	    box.options[boxindex++] = new Option(ca_states[i+1],ca_states[i]);
	    if(box.options[boxindex-1].value == sel){
	     	box.options[boxindex-1].selected = true;
	    }
	  }
	} else {
	  box.options.length = 0;
	  var boxindex =0;
	  for(i=0;i<empty_states.length;i+=2){
	    box.options[boxindex++] = new Option(empty_states[i+1],empty_states[i]);
	    if(box.options[boxindex-1].value == sel){
	     	box.options[boxindex-1].selected = true;
	    }
	  }
	 
	}
}

-->
