function updateProfile() { var a=document.getElementById("changeprofile"); var gender="f"; if(a.elements["sexe"][0].checked==false) gender="m"; var mail_mp=""; if(a.elements["mail_mp"].checked==true) mail_mp="1"; var mail_optin=""; if(a.elements["mail_optin"].checked==true) mail_optin="1"; jQuery.post ( "saveprofilechanges.php", { "sexe":gender, "jour_naiss":a.elements["jour_naiss"].value, "mois_naiss":a.elements["mois_naiss"].value, "annee_naiss":a.elements["annee_naiss"].value, "update_prenom":a.elements["update_prenom"].value, "update_nom":a.elements["update_nom"].value, "pays":a.elements["pays"].value, "mail_mp":mail_mp, "mail_optin":mail_optin, "signature":a.elements["signature"].value, "url":a.elements["url"].value, "location":a.elements["location"].value, "email":a.elements["email"].value, "password1":a.elements["password1"].value, "password2":a.elements["password2"].value }, resultOfProfileChange ); } function iconSet() { var ICON_STYLE=3; changeStyleSheet(ICON_STYLE,"backgroundImage","url("+theImage.src+")"); changeStyleSheet(ICON_STYLE,"lineHeight", theImage.height+"px"); if(theImage.width <= 100) changeStyleSheet(ICON_STYLE,"paddingLeft",theImage.width+"px"); else changeStyleSheet(ICON_STYLE,"paddingLeft","100px"); if(theImage.height<30) changeStyleSheet(ICON_STYLE,"height","1em") else if(theImage.height<100) changeStyleSheet(ICON_STYLE,"height",theImage.height+"px"); else changeStyleSheet(ICON_STYLE,"height","100px"); } function headerAndResize(iu,loadImage) { theImage=new Image(); theImage.src=iu; if(loadImage != null) iconSet(); } function get_custom_sheet() { for(var i=0;i0 && rules[0].selectorText=="#custard_quicksand") return rules; } return null; } function getStyleSheetInfo(i,element) { var rules=get_custom_sheet(); if(rules==null) return null; return rules[i+1].style[element]; } function changeStyleSheet(i,element,newValue) { var rules=get_custom_sheet(); if(rules!=null) rules[i+1].style[element]=newValue; } function getBimboCode() { return document.getElementById("bimbodiv").innerHTML; } function getPetCode() { var a=document.getElementById("petdiv"); if(a==null) return null; return a.innerHTML; } function menuSelect(e) { var m=e.parentNode.getElementsByTagName("a"); for(i=0;i