﻿
function showGoogleMap(address, city, state, zip, name)
{
 var re = /\s/g; // regular expression object
 var features = 'height=700,left=0,menubar,resizable,scrollbars=yes,status,width=995'
 // Different URL samples
// 'http://maps.google.com/maps?q=1300+e+68th+avenue,+anchorage,+ak'; // map view
// 'http://maps.google.com/maps?q=1300+e+68th+avenue,+anchorage,+ak&t=k'; // satellite view
// 'http://maps.google.com/maps?q=1300+e+68th+avenue,+anchorage,+ak&t=h'; // hybrid view

 var url = 'http://maps.google.com/maps?q=loc:';

 url += address.replace(re, '+') + '+' + city + '+' + state + '+' + zip + '&t=h';

 window.open(url, features, false);
}
var ctrl;
var ctrlCount;
var  vRemainingCountLbl;
var whatTextShouldSay;
function updateRemainingChars(ctrlToCount , remainingCountLbl, maxChars, e )
{
    ctrl = document.getElementById( ctrlToCount);
    vRemainingCountLbl = document.getElementById( remainingCountLbl);
    ctrlCount = ctrl.value.length;
    vRemainingCountLbl.innerHTML = (maxChars - ctrlCount);
    return;
    
}
function confirmOrgDelete()
{
    if(confirm("Delete This Business?!?!")) return true;
    else return false;
}