Rockdale Medical Center

Contact Us | My HealthPoint Patient Portal | Mission

Search
Close this search box.

Our Services

Find A Facility

Insurance
Blue Cross Blue Shield
Medicare

Reset Search

$.webshims.setOptions(‘forms’, { addValidators: true}); $.webshims.polyfill(‘forms forms-ext’);


<!– –>

(function(window,undefined){

// Check Location
if ( document.location.protocol === ‘file:’ ) {
alert(‘The HTML5 History API (and thus History.js) do not work on files, please upload it to a server.’);
}

// Establish Variables
var History = window.History, // Note: We are using a capital H instead of a lower h
State = History.getState();
//$log = $(‘#log’);

// Log Initial State
//History.log(‘initial:’, State.data, State.title, State.url);

// Bind to State Change
History.Adapter.bind(window,’statechange’,function(){ // Note: We are using statechange instead of popstate
// Log the State
var State = History.getState(); // Note: We are using History.getState() instead of event.state
//History.log(‘statechange:’, State.data, State.title, State.url);
});
})(window);

if (window.addEventListener) {
window.addEventListener(‘popstate’, function(event) {
$(“#liveSearchResults”).html(History.getState().data.content);
repopulateSearchFields();
});
}
else {
window.attachEvent(‘onpopstate’, function(event) {
$(“#liveSearchResults”).html(History.getState().data.content);
repopulateSearchFields();
});
}

$(document).ready(function() {
UpdateSearchResults();

if (History.getState().data.content == null) {
History.replaceState({content: $(“#liveSearchResults”).html(), filters: ”}, “Results”, “?”);
} else {
$(“#liveSearchResults”).html(History.getState().data.content);

repopulateSearchFields();
}

$(“input[name=’name’], select[name=’name’]”).change(function(){
UpdateSearchResults(2526, $(this).val());
});

$(“input[name=’name’]”).keydown(function(e){
checkEnter(e);
});

$(“input[name=’address1′], select[name=’address1′]”).change(function(){
UpdateSearchResults(2527, $(this).val());
});

$(“input[name=’address1′]”).keydown(function(e){
checkEnter(e);
});

$(“input[name=’city’], select[name=’city’]”).change(function(){
UpdateSearchResults(2528, $(this).val());
});

$(“input[name=’city’]”).keydown(function(e){
checkEnter(e);
});

$(“input[name=’state’], select[name=’state’]”).change(function(){
UpdateSearchResults(2529, $(this).val());
});

$(“input[name=’state’]”).keydown(function(e){
checkEnter(e);
});

$(“input[name=’zip’], select[name=’zip’]”).change(function(){
UpdateSearchResults(2530, $(this).val());
});

$(“input[name=’zip’]”).keydown(function(e){
checkEnter(e);
});

$(“input[name=’description’], select[name=’description’]”).change(function(){
UpdateSearchResults(2531, $(this).val());
});

$(“input[name=’description’]”).keydown(function(e){
checkEnter(e);
});

$(“input[name=’image’], select[name=’image’]”).change(function(){
UpdateSearchResults(2532, $(this).val());
});

$(“input[name=’image’]”).keydown(function(e){
checkEnter(e);
});

$(“input[name=’insurance’], select[name=’insurance’]”).change(function(){
UpdateSearchResults(2533, $(this).val());
});

$(“input[name=’insurance’]”).keydown(function(e){
checkEnter(e);
});

$(“input[name=’address2′], select[name=’address2′]”).change(function(){
UpdateSearchResults(2534, $(this).val());
});

$(“input[name=’address2′]”).keydown(function(e){
checkEnter(e);
});

$(“input[name=’phone’], select[name=’phone’]”).change(function(){
UpdateSearchResults(2535, $(this).val());
});

$(“input[name=’phone’]”).keydown(function(e){
checkEnter(e);
});

$(“input[name=’fax’], select[name=’fax’]”).change(function(){
UpdateSearchResults(2536, $(this).val());
});

$(“input[name=’fax’]”).keydown(function(e){
checkEnter(e);
});

$(“input[name=’monday’], select[name=’monday’]”).change(function(){
UpdateSearchResults(2537, $(this).val());
});

$(“input[name=’monday’]”).keydown(function(e){
checkEnter(e);
});

$(“input[name=’tuesday’], select[name=’tuesday’]”).change(function(){
UpdateSearchResults(2538, $(this).val());
});

$(“input[name=’tuesday’]”).keydown(function(e){
checkEnter(e);
});

$(“input[name=’wednesday’], select[name=’wednesday’]”).change(function(){
UpdateSearchResults(2539, $(this).val());
});

$(“input[name=’wednesday’]”).keydown(function(e){
checkEnter(e);
});

$(“input[name=’thursday’], select[name=’thursday’]”).change(function(){
UpdateSearchResults(2540, $(this).val());
});

$(“input[name=’thursday’]”).keydown(function(e){
checkEnter(e);
});

$(“input[name=’friday’], select[name=’friday’]”).change(function(){
UpdateSearchResults(2541, $(this).val());
});

$(“input[name=’friday’]”).keydown(function(e){
checkEnter(e);
});

$(“input[name=’saturday’], select[name=’saturday’]”).change(function(){
UpdateSearchResults(2542, $(this).val());
});

$(“input[name=’saturday’]”).keydown(function(e){
checkEnter(e);
});

$(“input[name=’sunday’], select[name=’sunday’]”).change(function(){
UpdateSearchResults(2543, $(this).val());
});

$(“input[name=’sunday’]”).keydown(function(e){
checkEnter(e);
});

$(“input[name=’extended_hours’], select[name=’extended_hours’]”).change(function(){
UpdateSearchResults(2544, $(this).val());
});

$(“input[name=’extended_hours’]”).keydown(function(e){
checkEnter(e);
});

$(“input[name=’visiting_hours’], select[name=’visiting_hours’]”).change(function(){
UpdateSearchResults(2545, $(this).val());
});

$(“input[name=’visiting_hours’]”).keydown(function(e){
checkEnter(e);
});

$(“input[name=’neighborhood’], select[name=’neighborhood’]”).change(function(){
UpdateSearchResults(2546, $(this).val());
});

$(“input[name=’neighborhood’]”).keydown(function(e){
checkEnter(e);
});

$(“input[name=’insurance_additional’], select[name=’insurance_additional’]”).change(function(){
UpdateSearchResults(2547, $(this).val());
});

$(“input[name=’insurance_additional’]”).keydown(function(e){
checkEnter(e);
});

$(“input[name=’micrositeurl’], select[name=’micrositeurl’]”).change(function(){
UpdateSearchResults(2548, $(this).val());
});

$(“input[name=’micrositeurl’]”).keydown(function(e){
checkEnter(e);
});

$(“select[name=’category’]”).change(function(){
UpdateSearchResults(-1, $(this).val());
});

$(“input[name=’dateFilter’]”).change(function(){
UpdateSearchResults(-2, $(this).val());
});

$(“#monthFilter”).change(function(){
updateDateFilter();
});

$(“#yearFilter”).change(function(){
updateDateFilter();
});

$(“.yearFilter”).click(function(){
updateDateFilterLink($(this).attr(“data-val”));
});

$(“.monthFilter”).click(function(){
updateDateFilterLink($(this).attr(“data-val”));
});

function updateDateFilterLink(v){
$(‘#dateFilter’).val(v);
UpdateSearchResults();
}

function updateDateFilter(){
var month = “”;
var year = “”;

if($(‘#monthFilter’).val().length > 0)
month = $(‘#monthFilter’).val();

if($(‘#yearFilter’).val().length > 0)
year = $(‘#yearFilter’).val();

if(month.length == 2 && year.length == 4) {
$(‘#dateFilter’).val(month + “/” + year);
} else if (month.length == 2) {
$(‘#dateFilter’).val(month);
} else if (year.length == 4) {
$(‘#dateFilter’).val(year);
}

UpdateSearchResults();
}

$( document ).on( “click”, “a.paginationNumber”, function(e) {
e.preventDefault();
$(‘#itemsPerPage’).val($(e.target).html());
UpdateSearchResults();
});
});

function repopulateSearchFields() {
var filterSettings = JSON.parse(History.getState().data.filters);

$(“.formSet input[type!=’hidden’], .formSet select”).each(function() {
var propID = $(this).attr(‘data-id’);
//console.log(propID);

var propValue = “”;

for(i=0;i<filterSettings.length;i++) {
if(filterSettings[i].PropertyID==propID) {
$(this).val(filterSettings[i].Value);
}
}
});
}

function MakeFilters() {
var jsonVar = [];

//get non multiple fields
//$(".formSet input[type!='hidden'], .formSet select :not([multiple])").each(function() {
$('#searchFinder').siblings("form").find("input[type!='hidden'], input[id='dateFilter'], select:not([multiple])").not(".ignore, input[type='submit']").each(function() {
var propID = $(this).attr('data-id');
var value = $(this).val();

if(value) {
jsonVar.push(
{
"PropertyID": propID,
"Value": (value.length != 0) ? value : "",
}
);
}
});

var jsonString = JSON.stringify(jsonVar);
return jsonString;
}

function UpdateSearchResultsPage(pageNumber)
{
UpdateSearchResults(null,'',pageNumber);
}

var ajaxRequest = $.ajax();

function UpdateSearchResults(p,v,pageNumber)
{
ajaxRequest.abort();

var itemsPerPage = 11;

if($('#itemsPerPage').val()) {
itemsPerPage = Number($('#itemsPerPage').val().replace("Show ", ""));
} else {
itemsPerPage = Number($('#itemsPerPage').val());
}

$("#liveSearchResults").html("Loading search results...“);

pageNumber = pageNumber || 1;
//itemsPerPage = itemsPerPage || 10;

//console.log(pageNumber);

var layoutID = 1648;
var formBlockID = $(“input[name=’FormBlockID’]”).val();
var filters = MakeFilters();
var url = “/our-facility/find-a-facility”;

ajaxRequest = $.ajax({
url: “/Page/UpdateLiveSearch/”,
type: “POST”,
data: { BlockID: formBlockID, LayoutID: layoutID, Filters: filters, URL: url, pageNumber: pageNumber, itemsPerPage: itemsPerPage },
dataType: “json”,
beforeSend: function (x) {
if (x && x.overrideMimeType) {
x.overrideMimeType(“application/j-son;charset=UTF-8”);
}
},
success: function (result) {
if(result.resultsCount > 0) {
$(“#liveSearchResults”).html(result.paging + result.result + result.paging);
} else {
$(“#liveSearchResults”).html(“No items matched your search.”);
}
//$(“#liveSearchPaging”).html(result.paging);
History.pushState({content: result.paging + result.result + result.paging, filters: MakeFilters()}, “”, “?”);
},
error: function (result) {
$(“#liveSearchResults”).html(“Error retrieving search results. Please try again.”);
}
});
}

function resetForm($form) {
$form.find(‘input:text, input:password, input:file, select, textarea’).val(”);
$form.find(‘input:radio, input:checkbox’)
.removeAttr(‘checked’).removeAttr(‘selected’);
}

function resetSearch() {
resetForm($(‘.formSet’));
UpdateSearchResults();
}

function startsWith(theLetter, theFieldName) {
$(‘#’ + theFieldName).val(theLetter + “*”);
UpdateSearchResults();
}

function checkEnter(event) {
var keynum;

if (window.event)
{
keynum = event.keyCode;
}
else
{
if (event.which)
{
keynum = event.which;
}
}

if (keynum == 13) {
event.target.blur();
return false;
}
}