CXIHALang.SetLangSrc("{ 'saving': 'Opslaan...', 'XIHA_json_ver': '1.0' }"); function jsave_my_country_relationship(countryid) {var liveincountry=-1;var iwasbornincountry=-1;var ihavelivedincountry=-1;var ihavevisitedcountry=-1;var myfavoritecountry=-1;var iwanttovisitcountry=-1;var iwanttomovetocountry=-1;var iamcitizen=-1;var o=$Elem('iliveincountry');if(o.found){if(o.checked){liveincountry=1;}else{liveincountry=0;}} o=$Elem('iwasbornincountry');if(o.found){if(o.checked){iwasbornincountry=1;}else{iwasbornincountry=0;}} o=$Elem('ihavelivedincountry');if(o.found){if(o.checked){ihavelivedincountry=1;}else{ihavelivedincountry=0;}} o=$Elem('ihavevisitedcountry');if(o.found){if(o.checked){ihavevisitedcountry=1;}else{ihavevisitedcountry=0;}} o=$Elem('myfavoritecountry');if(o.found){if(o.checked){myfavoritecountry=1;}else{myfavoritecountry=0;}} o=$Elem('iwanttovisitcountry');if(o.found){if(o.checked){iwanttovisitcountry=1;}else{iwanttovisitcountry=0;}} o=$Elem('iwanttomovetocountry');if(o.found){if(o.checked){iwanttomovetocountry=1;}else{iwanttomovetocountry=0;}} o=$Elem('iamcitizen');if(o.found){if(o.checked){iamcitizen=1;}else{iamcitizen=0;}} var url='/countries/countries_xmlhttp.php';var params={'country':countryid,'command':'savemycountry','iliveincountry':iliveincountry,'iwasbornincountry':iwasbornincountry,'ihavelivedincountry':ihavelivedincountry,'ihavevisitedcountry':ihavevisitedcountry,'myfavoritecountry':myfavoritecountry,'iwanttovisitcountry':iwanttovisitcountry,'iamcitizen':iamcitizen,'iwanttomovetocountry':iwanttomovetocountry};CAJAX.Post(url,params,jcountries_process_http_response);$Elem('countries_page_status').SetContent(CXIHALang.Localized('saving'));} function jcountries_process_http_response(obj) {if(obj.status=="OK"){var txtid=obj.txtid;$Elem('countries_page_status').SetContent(obj.msg);}else{CAJAX.DefaultError(response);}}