function SetStateOptions( country, state, id )
{ 
	if(!id)
	{
		id = 'state';
	}
	var state_obj = document.getElementById( id );
	state_obj.options.length = 0;
	var ind = 1;
	if(country == 'Canada')
	{
		ind = 2;
	}
	for ( var i=0; i<states[ind].length; i++ )
	{
		state_obj.options[i] = new Option( states[ind][i], states[ind][i] );
		if ( state ) 
		{
			if ( state == states[ind][i] ) 
			{
				state_obj.options[i].selected="true";
			}
		}
	}
}
