                var stateArray = new Array();
                stateArray.push({brief:"AB",name:"Alberta",cCode:"CA"});
							  stateArray.push({brief:"BC",name:"British Columbia",cCode:"CA"});
							  stateArray.push({brief:"MB",name:"Manitoba",cCode:"CA"});
							  stateArray.push({brief:"NB",name:"New Brunswick",cCode:"CA"});
							  stateArray.push({brief:"NL",name:"Newfoundland",cCode:"CA"});
							  stateArray.push({brief:"NS",name:"Nova Scotia",cCode:"CA"});
							  stateArray.push({brief:"NT",name:"Northwest Territories",cCode:"CA"});
							  stateArray.push({brief:"NU",name:"Nunavut",cCode:"CA"});
							  stateArray.push({brief:"ON",name:"Ontario",cCode:"CA"});
							  stateArray.push({brief:"PE",name:"Prince Edward Island",cCode:"CA"});
							  stateArray.push({brief:"QC",name:"Quebec",cCode:"CA"});
							  stateArray.push({brief:"SK",name:"Saskatchewan",cCode:"CA"});
							  stateArray.push({brief:"YT",name:"Yukon",cCode:"CA"});
							  stateArray.push({brief:"AG",name:"Aguascalientes",cCode:"MX"});
							  stateArray.push({brief:"BC",name:"Baja California Norte",cCode:"MX"});
							  stateArray.push({brief:"BS",name:"Baja California Sur",cCode:"MX"});
							  stateArray.push({brief:"CH",name:"Chihuahua",cCode:"MX"});
							  stateArray.push({brief:"CL",name:"Colima",cCode:"MX"});
							  stateArray.push({brief:"CM",name:"Campeche",cCode:"MX"});
							  stateArray.push({brief:"CO",name:"Coahuila",cCode:"MX"});
							  stateArray.push({brief:"CS",name:"Chiapas",cCode:"MX"});
							  stateArray.push({brief:"DF",name:"Distrito Federal",cCode:"MX"});
							  stateArray.push({brief:"DG",name:"Durango",cCode:"MX"});
							  stateArray.push({brief:"GR",name:"Guerrero",cCode:"MX"});
							  stateArray.push({brief:"GT",name:"Guanajuato",cCode:"MX"});
							  stateArray.push({brief:"HG",name:"Hidalgo",cCode:"MX"});
							  stateArray.push({brief:"JA",name:"Jalisco",cCode:"MX"});
							  stateArray.push({brief:"MI",name:"Michoac¨¢n",cCode:"MX"});
							  stateArray.push({brief:"MO",name:"Morelos",cCode:"MX"});
							  stateArray.push({brief:"MX",name:"Mexico",cCode:"MX"});
							  stateArray.push({brief:"NA",name:"Nayarit",cCode:"MX"});
							  stateArray.push({brief:"NL",name:"Nuevo Leon",cCode:"MX"});
							  stateArray.push({brief:"OA",name:"Oaxaca",cCode:"MX"});
							  stateArray.push({brief:"PU",name:"Puebla",cCode:"MX"});
							  stateArray.push({brief:"QR",name:"Quintana Roo",cCode:"MX"});
							  stateArray.push({brief:"QT",name:"Queretaro",cCode:"MX"});
							  stateArray.push({brief:"SI",name:"Sinaloa",cCode:"MX"});
							  stateArray.push({brief:"SL",name:"San Luis Potosi",cCode:"MX"});
							  stateArray.push({brief:"SO",name:"Sonora",cCode:"MX"});
							  stateArray.push({brief:"TB",name:"Tabasco",cCode:"MX"});
							  stateArray.push({brief:"TL",name:"Tlaxcala",cCode:"MX"});
							  stateArray.push({brief:"TM",name:"Tamaulipas",cCode:"MX"});
							  stateArray.push({brief:"VE",name:"Veracruz",cCode:"MX"});
							  stateArray.push({brief:"YU",name:"Yucatan",cCode:"MX"});
							  stateArray.push({brief:"ZA",name:"Zacatecas",cCode:"MX"});
							  stateArray.push({brief:"AK",name:"Alaska",cCode:"US"});
							  stateArray.push({brief:"AL",name:"Alabama",cCode:"US"});
							  stateArray.push({brief:"AR",name:"Arkansas",cCode:"US"});
							  stateArray.push({brief:"AZ",name:"Arizona",cCode:"US"});
							  stateArray.push({brief:"CA",name:"California",cCode:"US"});
							  stateArray.push({brief:"CO",name:"Colorado",cCode:"US"});
							  stateArray.push({brief:"CT",name:"Connecticut",cCode:"US"});
							  stateArray.push({brief:"DC",name:"District of Columbia",cCode:"US"});
							  stateArray.push({brief:"DE",name:"Delaware",cCode:"US"});
							  stateArray.push({brief:"FL",name:"Florida",cCode:"US"});
							  stateArray.push({brief:"GA",name:"Georgia",cCode:"US"});
							  stateArray.push({brief:"HI",name:"Hawaii",cCode:"US"});
							  stateArray.push({brief:"IA",name:"Iowa",cCode:"US"});
							  stateArray.push({brief:"ID",name:"Idaho",cCode:"US"});
							  stateArray.push({brief:"IL",name:"Illinois",cCode:"US"});
							  stateArray.push({brief:"IN",name:"Indiana",cCode:"US"});
							  stateArray.push({brief:"KS",name:"Kansas",cCode:"US"});
							  stateArray.push({brief:"KY",name:"Kentucky",cCode:"US"});
							  stateArray.push({brief:"LA",name:"Louisiana",cCode:"US"});
							  stateArray.push({brief:"MA",name:"Massachusetts",cCode:"US"});
							  stateArray.push({brief:"MD",name:"Maryland",cCode:"US"});
							  stateArray.push({brief:"ME",name:"Maine",cCode:"US"});
							  stateArray.push({brief:"MI",name:"Michigan",cCode:"US"});
							  stateArray.push({brief:"MN",name:"Minnesota",cCode:"US"});
							  stateArray.push({brief:"MO",name:"Missouri",cCode:"US"});
							  stateArray.push({brief:"MS",name:"Mississippi",cCode:"US"});
							  stateArray.push({brief:"MT",name:"Montana",cCode:"US"});
							  stateArray.push({brief:"NC",name:"North Carolina",cCode:"US"});
							  stateArray.push({brief:"ND",name:"North Dakota",cCode:"US"});
							  stateArray.push({brief:"NE",name:"Nebraska",cCode:"US"});
							  stateArray.push({brief:"NH",name:"New Hampshire",cCode:"US"});
							  stateArray.push({brief:"NJ",name:"New Jersey",cCode:"US"});
							  stateArray.push({brief:"NM",name:"New Mexico",cCode:"US"});
							  stateArray.push({brief:"NV",name:"Nevada",cCode:"US"});
							  stateArray.push({brief:"NY",name:"New York",cCode:"US"});
							  stateArray.push({brief:"OH",name:"Ohio",cCode:"US"});
							  stateArray.push({brief:"OK",name:"Oklahoma",cCode:"US"});
							  stateArray.push({brief:"OR",name:"Oregon",cCode:"US"});
							  stateArray.push({brief:"PA",name:"Pennsylvania",cCode:"US"});
							  stateArray.push({brief:"PR",name:"Puerto Rico",cCode:"US"});
							  stateArray.push({brief:"RI",name:"Rhode Island",cCode:"US"});
							  stateArray.push({brief:"SC",name:"South Carolina",cCode:"US"});
							  stateArray.push({brief:"SD",name:"South Dakota",cCode:"US"});
							  stateArray.push({brief:"TN",name:"Tennessee",cCode:"US"});
							  stateArray.push({brief:"TX",name:"Texas",cCode:"US"});
							  stateArray.push({brief:"UT",name:"Utah",cCode:"US"});
							  stateArray.push({brief:"VA",name:"Virginia",cCode:"US"});
							  stateArray.push({brief:"VT",name:"Vermont",cCode:"US"});
							  stateArray.push({brief:"WA",name:"Washington State",cCode:"US"});
							  stateArray.push({brief:"WI",name:"Wisconsin",cCode:"US"});
							  stateArray.push({brief:"WV",name:"West Virginia",cCode:"US"});
							  stateArray.push({brief:"WY",name:"Wyoming",cCode:"US"});
										  
										  	                
               function copyshipaddr(){
                  	document.newacc.sCountry.value   = document.newacc.bCountry.value;
										changeCountry(document.newacc.sCountry,document.newacc.sState);	
                  	document.newacc.sAddr1.value     = document.newacc.bAddr1.value;
                  	document.newacc.sAddr2.value     = document.newacc.bAddr2.value;
                  	document.newacc.sCity.value      = document.newacc.bCity.value;
                  	document.newacc.sState.value     = document.newacc.bState.value;
                  	document.newacc.szip.value       = document.newacc.bzip.value;
                  	document.newacc.sphone.value     = document.newacc.bphone.value;
                  	document.newacc.sCompany.value   = document.newacc.bCompany.value;
                  	
                }
            
                   
                function changeCountry(countryObj,destStateObj){			                                	
                	var optionsObj = destStateObj.options;
                	optionsObj.length=0;
                	optionsObj[optionsObj.length] = new Option("-----------------------","");
                	for(var i = 0; i<stateArray.length;i++){
                		var tmpObj = stateArray[i];
                		if (tmpObj.cCode==countryObj.value){
                			optionsObj[optionsObj.length] = new Option(tmpObj.name,tmpObj.brief);
                		}
                	}
                	
                }
                
                function initPage(sState,bState){
                  changeCountry(document.getElementById("sCountry"),document.getElementById("sState"));
                  document.getElementById("sState").value=sState;
                  changeCountry(document.getElementById("bCountry"),document.getElementById("bState"));
                  document.getElementById("bState").value=bState
                }
