/*
 * SimpleModal Basic Modal Dialog
 * http://www.ericmmartin.com/projects/simplemodal/
 * http://code.google.com/p/simplemodal/
 *
 * Copyright (c) 2010 Eric Martin - http://ericmmartin.com
 *
 * Licensed under the MIT license:
 *   http://www.opensource.org/licenses/mit-license.php
 *
 * Revision: $Id: basic.js 254 2010-07-23 05:14:44Z emartin24 $
 */

jQuery(function ($) {
	// Load dialog on page load
	//$('#basic-modal-content').modal();

	// Load dialog on click
	  $("#isthepatient").change(function(){
                              
        var myval=$("#isthepatient").val();

        if (myval=="Self Pay"){			   
		
			$('#basic-modal-content').modal();

			return false;
		}
	});
        
        $("#baseduk").change(function(){              
            var myval=$("#baseduk").val();

            if (myval=="Yes"){			   
                $('#location').hide();
                // $("#outsideuk option:eq(0)").replaceWith("<option value='UK'>Yes</option>");
                $('#outsideuk').val('');
            }

            if (myval=="No") {
                $('#location').show();
            }
	});
        $('#location').hide();
        
});
