-<script type="text/javascript">//<![CDATA[
-{literal}
-
-function removeJob(id, pref)
-{
- document.getElementById(id + '_cont').style.display = 'none';
- if (document.forms.prof_annu[pref + '[new]'].value == '0') {
- document.getElementById(id + '_grayed').style.display = '';
- document.getElementById(id + '_grayed_name').innerHTML =
- document.forms.prof_annu[pref + "[name]"].value.replace('<', '<');
- }
- document.forms.prof_annu[pref + "[removed]"].value = "1";
-}
-
-function restoreJob(id, pref)
-{
- document.getElementById(id + '_cont').style.display = '';
- document.getElementById(id + '_grayed').style.display = 'none';
- document.forms.prof_annu[pref + "[removed]"].value = "0";
-}
-
-function updateSecteur(nb, id, pref, sel)
-{
- var secteur = document.forms.prof_annu[pref + '[secteur]'].value;
- if (secteur == '') {
- secteur = '-1';
- }
- Ajax.update_html(id + '_ss_secteur', 'profile/ajax/secteur/' +nb + '/' + secteur + '/' + sel);
-}
-
-function makeAddJob(id)
-{
- return function(data)
- {
- $('#add_job').before(data);
- updateSecteur('job_' + id, 'jobs[' + id + ']', '');
- };
-}
-
-function addJob()
-{
- var i = 0;
- while (document.getElementById('job_' + i) != null) {
- ++i;
- }
- $.get(platal_baseurl + 'profile/ajax/job/' + i, makeAddJob(i));
-}
-
-function validGeoloc(id, pref)
-{
- document.getElementById(id + '_geoloc').style.display = 'none';
- document.getElementById(id + '_geoloc_error').style.display = 'none';
- document.getElementById(id + '_geoloc_valid').style.display = 'none';
- document.forms.prof_annu[pref + "[parsevalid]"].value = "1";
- document.forms.prof_annu[pref + "[text]"].value = document.forms.prof_annu[pref + "[geoloc]"].value;
- document.forms.prof_annu[pref + "[cityid]"].value = document.forms.prof_annu[pref + "[geoloc_cityid]"].value;
- attachEvent(document.forms.prof_annu[pref + "[text]"], "click",
- function() { document.forms.prof_annu[pref + "[text]"].blur(); });
- document.forms.prof_annu[pref + "[text]"].className = '';
-}
-
-function validAddress(id, pref)
-{
- document.getElementById(id + '_geoloc').style.display = 'none';
- document.getElementById(id + '_geoloc_error').style.display = 'none';
- document.getElementById(id + '_geoloc_valid').style.display = 'none';
- document.forms.prof_annu[pref + "[parsevalid]"].value = "1";
- attachEvent(document.forms.prof_annu[pref + "[text]"], "click",
- function() { document.forms.prof_annu[pref + "[text]"].blur(); });
- document.forms.prof_annu[pref + "[text]"].className = '';
-}
-
-{/literal}
-//]]></script>
-