	////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
	//
	
	
	function getIPAddress(button_id, div_id)
	{
		ajax_error = false;
		$("#" + button_id).button({ disabled: true });
		$("#" + div_id).html('<img src="images/loading.gif" width="220" height="19" alt=" Loading... " style="position:relative; top:4px">');
		
			$.ajax(
				{
					url: "http://wiseportion.com/scripts/php/ip.php",
					type: 'get',
					
					complete:
							function(transport)
							{
								
									response = transport.responseText || ""; 
									
									$("#" + button_id).button({ disabled: false });
									$("#" + div_id).html(response);
									
									ajax_error = false;
									//var data = jQuery.parseJSON(response);
								 
							 },
					error:
							function()
							{
								ajax_error = true;
								$("#" + div_id).html('');
								$("#ajax_error").dialog("open");
								$("#" + button_id).button({ disabled: false });
							}
				});
				
	}
	
