1 function submitUserinfo(id, lang) {
2 var url="http://localhost:8080/cove/faces/docs/userinfo_"+lang+".xul";
3 var response = submit(url, getUserinfoParams(id));
4 replace(response, "userinfo", "thanks");
5 }
6
7 function getUserinfoParams(id) {
8 var email=document.getElementById("email").value;
9 var password=document.getElementById("password").value;
10 var favorite=document.getElementById("favorite").value;
11 return "id="+id+"&email="+email+"&password="+password+"&favorite="+favorite;
12 }