   var http10_request = false;
function makePOSTRequest10(url, parameters) {
      http10_request = false;
      if (window.XMLHttpRequest) { // Mozilla, Safari,...
         http10_request = new XMLHttpRequest();
         if (http10_request.overrideMimeType) {
         	// set type accordingly to anticipated content type
            //http10_request.overrideMimeType('text/xml');
            http10_request.overrideMimeType('text/html');
         }
      } else if (window.ActiveXObject) { // IE
         try {
            http10_request = new ActiveXObject("Msxml2.XMLHTTP");
         } catch (e) {
            try {
               http10_request = new ActiveXObject("Microsoft.XMLHTTP");
            } catch (e) {}
         }
      }
      if (!http10_request) {
         alert('Cannot create XMLHTTP instance');
         return false;
      }
 
      http10_request.onreadystatechange = alertContentssaveus;
      http10_request.open('POST', url, true);
      http10_request.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
      http10_request.setRequestHeader("Content-length", parameters.length);
      http10_request.setRequestHeader("Connection", "close");
      http10_request.send(parameters);
   }
 
   function alertContentssaveus() {
   if(http10_request.readyState==3)
      {
       document.getElementById("displaybox2").innerHTML="<center><br><br><br><br><img src=\"ajax/ajax-loader.gif\"></center>";
      }
      if (http10_request.readyState == 4) {
         if (http10_request.status == 200) {
            //alert(http10_request.responseText);
            result = http10_request.responseText;
            document.getElementById('displaybox2').innerHTML = result;            
         } else {
            alert('There was a problem with the request.');
         }
      }
   }
 
   function getusersaves(obj) {
  var poststr = "name=" + encodeURI( document.getElementById("name").value ) +
	  	  		  	"&surname=" + encodeURI( document.getElementById("surname").value ) +
					"&gid=" + encodeURI( document.getElementById("gid").value ) +
					"&nickname=" + encodeURI( document.getElementById("nickname").value ) +
					"&birthday_day=" + encodeURI( document.getElementById("birthday_day").value ) +
					"&birthday_year=" + encodeURI( document.getElementById("birthday_year").value ) +
					"&birthday_month=" + encodeURI( document.getElementById("birthday_month").value ) +
					"&email=" + encodeURI( document.getElementById("emailpp").value ) +
					"&skype=" + encodeURI( document.getElementById("skype").value ) +
					"&msn=" + encodeURI( document.getElementById("msn").value ) +
					"&homepage=" + encodeURI( document.getElementById("homepage").value ) +
					"&private=" + encodeURI( document.getElementById("privateemail").value ) +
					"&gender=" + encodeURI( document.getElementById("gender").value ) +
					"&cellno=" + encodeURI( document.getElementById("cellno").value ) +
					"&occupation=" + encodeURI( document.getElementById("occupation").value ) +
					"&city=" + encodeURI( document.getElementById("city").value ) +
					"&country=" + encodeURI( document.getElementById("country").value ) +
					"&discipline=" + encodeURI( document.getElementById("discipline").value ) +
					"&secdiscipline=" + encodeURI( document.getElementById("secdiscipline").value ) +
					"&recruitable=" + encodeURI( document.getElementById("recruitable").value ) +
					"&cpu=" + encodeURI( document.getElementById("cpu").value ) +
					"&monitor=" + encodeURI( document.getElementById("monitor").value ) +
					"&3dcard=" + encodeURI( document.getElementById("3dcard").value ) +
					"&hdd=" + encodeURI( document.getElementById("hdd").value ) +
                    "&motherboard=" + encodeURI( document.getElementById("motherboard").value ) +
					"&internet=" + encodeURI( document.getElementById("internet").value ) +
					"&headphones=" + encodeURI( document.getElementById("headphone").value ) +
					"&keyboard=" + encodeURI( document.getElementById("keyboard").value ) +
					"&mouse=" + encodeURI( document.getElementById("mouse").value ) +
					"&memory=" + encodeURI( document.getElementById("memory").value ) +
					"&sound=" + encodeURI( document.getElementById("sound").value );
      makePOSTRequest10('ajax/first/userprofile.php', poststr);
   }
