Survey177engidsidgroup_namegroup_orderdescriptionlanguagerandomization_groupgrelevanceqidparent_qidsidgidtypetitlequestionpreghelpothermandatoryquestion_orderlanguagescale_idsame_defaultrelevance
$(document).ready(function() {
// Identify the elements
var mapQ = $('#question{QID}');
var mapInput = $('input.text.location', mapQ);
var mapSGQA = mapInput.attr('id').replace(/answer/, '').replace(/_c/, '');
var map = gmaps[mapSGQA+'_c'];
var marker = gmaps['marker__'+mapSGQA+'_c'];
var addressQ = mapQ.prevAll('.text-short:eq(0)');
var addressInput = $('input.text', addressQ);
// Add a "Search" button
addressInput.after('');
// Wait for the maps to load
google.maps.event.addListenerOnce(map, 'idle', function(){
// Initialize geocoder
var geocoder = new google.maps.Geocoder();
// Geocode look-up function
function codeAddress() {
var address = addressInput.val();
geocoder.geocode( { 'address': address}, function(results, status) {
if (status == google.maps.GeocoderStatus.OK) {
// Move the map and marker
map.setCenter(results[0].geometry.location);
marker.setPosition(results[0].geometry.location);
// Record the new position
mapInput.val(Math.round(results[0].geometry.location.lat()*10000)/10000 + " " + Math.round(results[0].geometry.location.lng()*10000)/10000);
}
else {
alert("The search was not successful for the following reason: " + status);
}
});
}
$('button.geocode').click(function(e) {
codeAddress();
});
});
});
]]>qidattributevaluelanguagesidadminexpiresstartdateadminemailanonymizedfaxtoformatsavetimingstemplatelanguageadditional_languagesdatestampusecookieallowregisterallowsaveautonumber_startautoredirectallowprevprintanswersipaddrrefurlpublicstatisticspublicgraphslistpublichtmlemailsendconfirmationtokenanswerspersistenceassessmentsusecaptchausetokensbounce_emailattributedescriptionsemailresponsetoemailnotificationtotokenlengthshowxquestionsshowgroupinfoshownoanswershowqnumcodebouncetimebounceprocessingbounceaccounttypebounceaccounthostbounceaccountpassbounceaccountencryptionbounceaccountusershowwelcomeshowprogressnavigationdelaynokeyboardalloweditaftercompletiongoogleanalyticsstylegoogleanalyticsapikeyquestionindexsurveyls_survey_idsurveyls_languagesurveyls_titlesurveyls_descriptionsurveyls_welcometextsurveyls_endtextsurveyls_urlsurveyls_urldescriptionsurveyls_email_invite_subjsurveyls_email_invitesurveyls_email_remind_subjsurveyls_email_remindsurveyls_email_register_subjsurveyls_email_registersurveyls_email_confirm_subjsurveyls_email_confirmsurveyls_dateformatsurveyls_attributecaptionsemail_admin_notification_subjemail_admin_notificationemail_admin_responses_subjemail_admin_responsessurveyls_numberformatattachments
you have been invited to participate in a survey.
The survey is titled:
"{SURVEYNAME}"
"{SURVEYDESCRIPTION}"
To participate, please click on the link below.
Sincerely,
{ADMINNAME} ({ADMINEMAIL})
----------------------------------------------
Click here to do the survey:
{SURVEYURL}
If you do not want to participate in this survey and don't want to receive any more invitations please click the following link:
{OPTOUTURL}
If you are blacklisted but want to participate in this survey and want to receive invitations please click the following link:
{OPTINURL}]]>
Recently we invited you to participate in a survey.
We note that you have not yet completed the survey, and wish to remind you that the survey is still available should you wish to take part.
The survey is titled:
"{SURVEYNAME}"
"{SURVEYDESCRIPTION}"
To participate, please click on the link below.
Sincerely,
{ADMINNAME} ({ADMINEMAIL})
----------------------------------------------
Click here to do the survey:
{SURVEYURL}
If you do not want to participate in this survey and don't want to receive any more invitations please click the following link:
{OPTOUTURL}]]>
You, or someone using your email address, have registered to participate in an online survey titled {SURVEYNAME}.
To complete this survey, click on the following URL:
{SURVEYURL}
If you have any questions about this survey, or if you did not register to participate and believe this email is in error, please contact {ADMINNAME} at {ADMINEMAIL}.]]>
this email is to confirm that you have completed the survey titled {SURVEYNAME} and your response has been saved. Thank you for participating.
If you have any further questions about this email, please contact {ADMINNAME} on {ADMINEMAIL}.
Sincerely,
{ADMINNAME}]]>
A new response was submitted for your survey '{SURVEYNAME}'.
Click the following link to reload the survey:
{RELOADURL}
Click the following link to see the individual response:
{VIEWRESPONSEURL}
Click the following link to edit the individual response:
{EDITRESPONSEURL}
View statistics by clicking here:
{STATISTICSURL}]]>
A new response was submitted for your survey '{SURVEYNAME}'.
Click the following link to reload the survey:
{RELOADURL}
Click the following link to see the individual response:
{VIEWRESPONSEURL}
Click the following link to edit the individual response:
{EDITRESPONSEURL}
View statistics by clicking here:
{STATISTICSURL}
The following answers were given by the participant:
{ANSWERTABLE}]]>