/*#################################################################################################
##  Edit Personal Mini Info
##																								 */
function editPersonalInfos(){
	var ajax = new Ajax.Updater(
         'pers_info',        // DIV id (XXX: doesnt work?)
         '/elements/userprofile/func.aboutme.php?mode=persinfo&owner_id='+my_user_id,       // URL
         {                // options
         asynchronous: true,
		 evalScripts: true,
		 onComplete: showResponse
		 });

	function showResponse(req){
			$('pers_info').innerHTML = req.responseText;
	}
}
//-------------------------------------------------------------------------------------------------


/*#################################################################################################
##  Submit Changes Edit Personal Mini Info
##																								 */
function submitPersonalInfos(owner_id){
	var ajax = new Ajax.Updater(
         'pers_info',        // DIV id (XXX: doesnt work?)
         '/elements/userprofile/func.aboutme.php',	// URL
         {                // options
         asynchronous: true,
		 evalScripts: true,
		 method: 'post',
		 postBody: Form.serialize(document.persform)+'&owner_id='+owner_id,
		 onComplete: showResponse
		 });

	function showResponse(req){
		$('pers_info').innerHTML = req.responseText;
	}
}
//-------------------------------------------------------------------------------------------------



/*#################################################################################################
##  Password Change
##																								 */
function changePassword(owner_id){
	$('pw_status').innerHTML = "<div style=\"height: 100%;\"><table width=\"100%\" height=\"100%\"><tr valign=\"middle\" align=\"center\"><td><img src=\"/images/loading.gif\" width=\"18\" height=\"18\"></td></tr></table></div>";
	var ajax = new Ajax.Updater(
         'pw_status',        // DIV id (XXX: doesnt work?)
         '/elements/userprofile/func.aboutme.php',	// URL
         {                // options
         asynchronous: true,
		 evalScripts: true,
		 method: 'post',
		 postBody: Form.serialize(document.pwchange)+'&owner_id='+owner_id,
		 onComplete: showResponse
		 });

	function showResponse(req){
		$('pw_status').innerHTML = req.responseText;
	}
}
//-------------------------------------------------------------------------------------------------


/*#################################################################################################
##  Change Flirtbox Status
##																								 */
function updateFlirtbox(owner_id){
	$('flirtbox').innerHTML = "<div style=\"height: 100%;\"><table width=\"100%\" height=\"100%\"><tr valign=\"middle\" align=\"center\"><td><img src=\"/images/loading.gif\" width=\"18\" height=\"18\"></td></tr></table></div>";
	var ajax = new Ajax.Updater(
         'flirtbox',        // DIV id (XXX: doesnt work?)
         '/elements/userprofile/func.aboutme.php',	// URL
         {                // options
         asynchronous: true,
		 evalScripts: true,
		 method: 'post',
		 postBody: Form.serialize(document.flirtbox_form)+'&owner_id='+owner_id,
		 onComplete: showResponse
		 });

	function showResponse(req){
		$('flirtbox').innerHTML = req.responseText;
	}
}
//-------------------------------------------------------------------------------------------------

/*#################################################################################################
##  Edit Instant Messenger Info
##																								 */
function editIM(){
	var ajax = new Ajax.Updater(
         'im_info',        // DIV id (XXX: doesnt work?)
         '/elements/userprofile/func.aboutme.php?mode=editIM&owner_id='+my_user_id,       // URL
         {                // options
         asynchronous: true,
		 evalScripts: true,
		 onComplete: showResponse
		 });

	function showResponse(req){
			$('im_info').innerHTML = req.responseText;
	}
}
//-------------------------------------------------------------------------------------------------


/*#################################################################################################
##  Update Instant Messenger Info
##																								 */
function updateIM(owner_id){
	var ajax = new Ajax.Updater(
         'im_info',        // DIV id (XXX: doesnt work?)
         '/elements/userprofile/func.aboutme.php',	// URL
         {                // options
         asynchronous: true,
		 evalScripts: true,
		 method: 'post',
		 postBody: Form.serialize(document.im_form)+'&owner_id='+owner_id,
		 onComplete: showResponse
		 });

	function showResponse(req){
		$('im_info').innerHTML = req.responseText;
	}
}
//-------------------------------------------------------------------------------------------------


/*#################################################################################################
##  Edit Personal Website Entry
##																								 */
function editWebsite(){
	var ajax = new Ajax.Updater(
         'website_info',        // DIV id (XXX: doesnt work?)
         '/elements/userprofile/func.aboutme.php?mode=updateWebsite&owner_id='+my_user_id,       // URL
         {                // options
         asynchronous: true,
		 evalScripts: true,
		 onComplete: showResponse
		 });

	function showResponse(req){
			$('website_info').innerHTML = req.responseText;
	}
}
//-------------------------------------------------------------------------------------------------


/*#################################################################################################
##  Update Personal Website Entry
##																								 */
function updateWebsite(owner_id){
	var ajax = new Ajax.Updater(
         'website_info',        // DIV id (XXX: doesnt work?)
         '/elements/userprofile/func.aboutme.php',	// URL
         {                // options
         asynchronous: true,
		 evalScripts: true,
		 method: 'post',
		 postBody: Form.serialize(document.website_form)+'&owner_id='+owner_id,
		 onComplete: showResponse
		 });

	function showResponse(req){
		$('website_info').innerHTML = req.responseText;
	}
}
//-------------------------------------------------------------------------------------------------


/*#################################################################################################
##  Edit Personal Email
##																								 */
function editEmail(){
	var ajax = new Ajax.Updater(
         'emailchanger',        // DIV id (XXX: doesnt work?)
         '/elements/userprofile/func.aboutme.php?mode=editEmail&owner_id='+my_user_id,       // URL
         {                // options
         asynchronous: true,
		 evalScripts: true,
		 onComplete: showResponse
		 });

	function showResponse(req){
			$('emailchanger').innerHTML = req.responseText;
	}
}
//-------------------------------------------------------------------------------------------------


/*#################################################################################################
##  Update Personal Website Entry
##																								 */
function updateEmail(owner_id){
	var ajax = new Ajax.Updater(
         'emailchanger',        // DIV id (XXX: doesnt work?)
         '/elements/userprofile/func.aboutme.php',	// URL
         {                // options
         asynchronous: true,
		 evalScripts: true,
		 method: 'post',
		 postBody: Form.serialize(document.email_form)+'&owner_id='+owner_id,
		 onComplete: showResponse
		 });

	function showResponse(req){
		$('emailchanger').innerHTML = req.responseText;
	}
}
//-------------------------------------------------------------------------------------------------



/*#################################################################################################
##  Edit Opinion Infos
##																								 */
function editMyOpinions(){
	var ajax = new Ajax.Updater(
         'myopinions',        // DIV id (XXX: doesnt work?)
         '/elements/userprofile/func.opinions.php?owner_id='+my_user_id,       // URL
         {                // options
         asynchronous: true,
		 evalScripts: true,
		 onComplete: showResponse
		 });

	function showResponse(req){
			$('myopinions').innerHTML = req.responseText;
	}
}
//-------------------------------------------------------------------------------------------------


/*#################################################################################################
##  Update Opinion Infos
##																								 */
function submitOpinion(owner_id){
	var ajax = new Ajax.Updater(
         'myopinions',        // DIV id (XXX: doesnt work?)
         '/elements/userprofile/func.opinions.php',	// URL
         {                // options
         asynchronous: true,
		 evalScripts: true,
		 method: 'post',
		 postBody: Form.serialize(document.coolform)+'&owner_id='+owner_id,
		 onComplete: showResponse
		 });

	function showResponse(req){
		$('myopinions').innerHTML = req.responseText;
	}
}
//-------------------------------------------------------------------------------------------------



/*#################################################################################################
##  Edit Sound Styles Infos
##																								 */
function editMySounds(){
	var ajax = new Ajax.Updater(
         'mysounds',        // DIV id (XXX: doesnt work?)
         '/elements/userprofile/func.soundstyles.php?owner_id='+my_user_id,       // URL
         {                // options
         asynchronous: true,
		 evalScripts: true,
		 onComplete: showResponse
		 });

	function showResponse(req){
			$('mysounds').innerHTML = req.responseText;
	}
}
//-------------------------------------------------------------------------------------------------


/*#################################################################################################
##  Update Opinion Infos
##																								 */
function submitSound(owner_id){
	var ajax = new Ajax.Updater(
         'mysounds',        // DIV id (XXX: doesnt work?)
         '/elements/userprofile/func.soundstyles.php',	// URL
         {                // options
         asynchronous: true,
		 method: 'post',
		 postBody: Form.serialize(document.soundform)+'&owner_id='+owner_id,
		 onComplete: showResponse
		 });

	function showResponse(req){
		location.href = document.URL;
	}
}
//-------------------------------------------------------------------------------------------------



/*#################################################################################################
##  Edit Proverb
##																								 */
function editProverb(){
	var ajax = new Ajax.Updater(
         'mymotto',        // DIV id (XXX: doesnt work?)
         '/elements/userprofile/func.quote.php?owner_id='+my_user_id,       // URL
         {                // options
         asynchronous: true,
		 evalScripts: true,
		 onComplete: showResponse
		 });

	function showResponse(req){
			$('mymotto').innerHTML = req.responseText;
	}
}
//-------------------------------------------------------------------------------------------------


/*#################################################################################################
##  Update Proverb
##																								 */
function updateProverb(owner_id){
	var ajax = new Ajax.Updater(
         'mymotto',        // DIV id (XXX: doesnt work?)
         '/elements/userprofile/func.quote.php',	// URL
         {                // options
         asynchronous: true,
		 method: 'post',
		 postBody: Form.serialize(document.quoteform)+'&owner_id='+owner_id,
		 onComplete: showResponse
		 });

	function showResponse(req){
		$('mymotto').innerHTML = req.responseText;
	}
}
//-------------------------------------------------------------------------------------------------


/*#################################################################################################
##  Edit Personal Email
##																								 */
function editHandy(){
	var ajax = new Ajax.Updater(
         'handychanger',        // DIV id (XXX: doesnt work?)
         '/elements/userprofile/func.aboutme.php?mode=editHandy&owner_id='+my_user_id,       // URL
         {                // options
         asynchronous: true,
		 evalScripts: true,
		 onComplete: showResponse
		 });

	function showResponse(req){
			$('handychanger').innerHTML = req.responseText;
	}
}
//-------------------------------------------------------------------------------------------------


/*#################################################################################################
##  Update Personal Website Entry
##																								 */
function updateHandy(owner_id){
	var ajax = new Ajax.Updater(
         'handychanger',        // DIV id (XXX: doesnt work?)
         '/elements/userprofile/func.aboutme.php',	// URL
         {                // options
         asynchronous: true,
		 evalScripts: true,
		 method: 'post',
		 postBody: Form.serialize(document.handy_form)+'&owner_id='+owner_id,
		 onComplete: showResponse
		 });

	function showResponse(req){
		$('handychanger').innerHTML = req.responseText;
	}
}
//-------------------------------------------------------------------------------------------------
