Urge Your Federal Legislators to Support New Legislation to Protect Medical Cannabis Patients and Providers!

Posted on: April 3rd, 2012 by admin No Comments

‘);
$(‘#zipform’).show();
}
}
} else if (requiresState) {
if (obj.region && obj.region.length > 0) {
//we’re okay, we have all our info
showTargets(obj);
} else {
$(‘#district’).html(‘We don’t know where this zip code is.’);
$(‘#zipform’).show();
}
} else if (requiresZip) {
if (obj.postal_code && obj.postal_code.length > 0) {
//we’re okay, we have all our info
showTargets(obj);
} else {
$(‘#zipform’).show();
}
}

$(‘#loading’).hide();
}

function submitZip() {
var zip = $(‘#tempZip’).val();

if (! zip || zip.length == 0) {
alert(‘Please enter a valid zip code’);
}

if (zip) document.getElementById(‘tempZip2′).value = zip;
var zip4 = null;
var zip5;
if (zip.indexOf(‘-’) != -1) {
var parts = zip.split(‘-’);
zip5 = parts[0];
zip4 = parts[1];
}
if (zip4) submitInfo(zip5,zip4);
else submitInfo(zip);
$(“input[name='Zip']“).attr(‘value’, zip);
if (zip4) $(“input[name='PRIVATE_Zip_Plus_4']“).attr(‘value’, zip4);
}

function submitZip2() {
var zip = $(‘#tempZip2′).val();
var zip4 = $(‘#tempZip42′).val();
submitInfo(zip, zip4);
$(“input[name='Zip']“).attr(‘value’, zip);
$(“input[name='PRIVATE_Zip_Plus_4']“).attr(‘value’, zip4);
}

function submitInfo(zip, zip4) {
$(‘#loading’).show();
var address1 = $(‘#tempAddress’).val();
var address2 = $(‘#tempAddress2′).val();
var url = ‘http://warehouse.salsalabs.com/salsa/api/warehouse/append.jsp?json&postal_code=’ + zip;
if (zip4 && zip4.length > 0 && zip4 != ’0000′) url += ‘&postal_code_extension=’ + escape(zip4);
if (address1 && address1.length > 0) url += ‘&address1=’ + escape(address1);

url += ‘&callback=?’;

$.getJSON(url, printdata);
}

$(‘#zipform’).show();

Follow this link: Urge Your Federal Legislators to Support New Legislation to Protect Medical Cannabis Patients and Providers!

Blog Setup

Tags: , , , , , , , ,

Leave a Reply

PO Box 15213, Scottsdale, AZ 85267, (602) 315-8808