var $jQuery = jQuery.noConflict();

$jQuery(document).ready(function()
{
	populateStateBox( );
	
	$jQuery("#countryID").change(function()
	{
		populateStateBox( );
	});
});

function populateStateBox( )
{
	$jQuery.ajax(
		{
		type: "POST",
		url: "/ajax_get_states.php",
		cache: false,
		data: "countryID=" +  $jQuery( "#countryID" ).val( ) + "&stateID=" + $jQuery("#stateID").val( ),
		success: function(msg){
			$jQuery("#stateID").html( msg );
		}
	 });
}