/*/ Profile /*/
function openProfile() {
  new Ajax.Updater( 'login_middle',
                    html_url+'submitAJAX.php',
                    { method:'post', 
                      postBody: 'submitKind=profile'+
                                '&profileKind=profile',
                      onCreate: startLoading, 
                      onComplete : stopLoading
                    }
  )
}
function sendProfile() {
  new Ajax.Updater( 'login_middle',
                    html_url+'submitAJAX.php',
                    { method:'post', 
                      postBody: $('profile_form').serialize()+
                                '&submitKind=profile'+
                                '&profileKind=profile',
                      onCreate: startLoading, 
                      onComplete : stopLoading
                    }
  )
}
/*/ Password/*/
function openPassword() {
  new Ajax.Updater( 'login_middle',
                    html_url+'submitAJAX.php',
                    { method:'post', 
                      postBody: 'submitKind=profile'+
                                '&profileKind=password',
                      onCreate: startLoading, 
                      onComplete : stopLoading
                    }
  )
}
function sendPassword() {
  new Ajax.Updater( 'login_middle',
                    html_url+'submitAJAX.php',
                    { method:'post', 
                      postBody: $('password_form').serialize()+
                                '&submitKind=profile'+
                                '&profileKind=password',
                      onCreate: startLoading, 
                      onComplete : stopLoading
                    }
  )
}
/*/ Settings /*/
function openSettings() {
  new Ajax.Updater( 'login_middle',
                    html_url+'submitAJAX.php',
                    { method:'post', 
                      postBody: 'submitKind=profile'+
                                '&profileKind=settings',
                      onCreate: startLoading, 
                      onComplete : stopLoading
                    }
  )
}
function sendSettings() {
  new Ajax.Updater( 'login_middle',
                    html_url+'submitAJAX.php',
                    { method:'post', 
                      postBody: $('settings_form').serialize()+
                                '&submitKind=profile'+
                                '&profileKind=settings',
                      onCreate: startLoading, 
                      onComplete : stopLoading
                    }
  )
}
/*/ Avatar /*/
function openAvatar() {
  new Ajax.Updater( 'login_middle',
                    html_url+'submitAJAX.php',
                    { method:'post', 
                      postBody: 'submitKind=profile'+
                                '&profileKind=avatar',
                      onCreate: startLoading, 
                      onComplete : stopLoading
                    }
  )
}
function sendAvatar() {
  new Ajax.Updater( 'login_middle',
                    html_url+'submitAJAX.php',
                    { method:'post', 
                      postBody: $('avatar_form').serialize()+
                                '&submitKind=profile'+
                                '&profileKind=avatar',
                      onCreate: startLoading, 
                      onComplete : stopLoading
                    }
  )
}

/*/ News /*/
function openWriteNews() {
  new Ajax.Updater( 'login_middle',
                    html_url+'submitAJAX.php',
                    { method:'post', 
                      postBody: 'submitKind=profile'+
                                '&profileKind=writeNews',
                      onCreate: startLoading, 
                      onComplete : stopLoading
                    }
  )
}
function sendWriteNews() {
  new Ajax.Updater( 'login_middle',
                    html_url+'submitAJAX.php',
                    { method:'post', 
                      postBody: $('news_form').serialize()+
                                '&submitKind=profile'+
                                '&profileKind=writeNews',
                      onCreate: startLoading, 
                      onComplete : stopLoading
                    }
  )
}
/*/ TransferAccount /*/
function openTransfer() {
  new Ajax.Updater( 'login_middle',
                    html_url+'submitAJAX.php',
                    { method:'post', 
                      postBody: 'submitKind=profile'+
                                '&profileKind=transferAccount',
                      onCreate: startLoading, 
                      onComplete : stopLoading
                    }
  )
}
function sendTransferAccount() {
  new Ajax.Updater( 'login_middle',
                    html_url+'submitAJAX.php',
                    { method:'post', 
                      postBody: $('transfer_form').serialize()+
                                '&submitKind=profile'+
                                '&profileKind=transferAccount',
                      onCreate: startLoading, 
                      onComplete : stopLoading
                    }
  )
}
