	function usersave(id)
	 {
	 $("#userloader_"+id).show();
	 $("#usersave_"+id).hide();
	 ci=$("#city_"+id).attr("value");
	 co=$("#company_"+id).attr("value");
	 pa=$("#pass_"+id).attr("value");
	 lo=$("#login_"+id).attr("value");
	 em=$("#email_"+id).attr("value");
	 xajax_usersavechange(id,ci,co,pa,lo,em);
	 return false;
	 }	
	 
	 function changeuser(id)
	 {
	 $("#userinfo_"+id).hide();
	 $("#d_"+id).hide();
	 $("#c_"+id).hide();
	 $("#userinput_"+id).show();
	 $("#usersave_"+id).show();
	 }
	 
	 function adduser()
	 {
	 l=$("#login").attr("value");
	 p=$("#pass").attr("value");
	 c=$("#city").attr("value");
	 e=$("#email").attr("value");
	 com=$("#company").attr("value");
	 $("#submituser").hide();
	 $("#userloader").show();
	 xajax_adduser(l,p,c,e,com);
	 return false;
	 }	 
	 
	 function addorder()
	 {
	 $("#submittext").hide();
	 $("#orderloader").show();
	 h=$("#head").attr("value");
	 t=$("#text").attr("value");

	 xajax_addorder(h,t);
	 return false;
	 }	 
	 
	 function deluser(id)
	 {
	 xajax_deluser(id);
	 return false;
	 }	 
	 
	 function delorder(id)
	 {
	 xajax_delorder(id);
	 return false;
	 }
	 	 
	 function showconfirm(id)
	 {
	 $("#c_"+id).hide();
	 $("#d_"+id).hide();
	 $("#con_"+id).show();
	 }	 	 
	 
	 function hideconfirm(id)
	 {
	 $("#c_"+id).show();
	 $("#d_"+id).show();
	 $("#con_"+id).hide();
	 }
	 	  
	 function showorderconfirm(id)
	 {
	 $("#oc_"+id).hide();
	 $("#od_"+id).hide();
	 $("#ocon_"+id).show();
	 }	 	 
	 
	 function hideorderconfirm(id)
	 {
	 $("#oc_"+id).show();
	 $("#od_"+id).show();
	 $("#ocon_"+id).hide();
	 }	
	 
	function showorderchange(id)
	 {
	 $("#ordertext_"+id).hide();
	 $("#ordertextarea_"+id).show();	 
	 $("#ordertitle_"+id).hide();
	 $("#ordertitleinput_"+id).show();
	 $("#od_"+id).hide();
	 $("#oc_"+id).hide();
	 $("#ordersavechange_"+id).show();
	 }
	 
	 function orderlock(id,usr_id)
	 {

	 $("#loader_"+id).show();
	 $("#ocon_"+id).hide();
	 xajax_orderlock(id,usr_id);
	 return false;
	 }	 
	 
	 function ordercancel(id)
	 {
	 $("#orderloader_"+id).show();

	 xajax_ordercancel(id);
	 return false;
	 }	 
	 
	 function orderarhiv(id)
	 {
	 $("#orderloader_"+id).show();
	 xajax_orderarhiv(id);
	 return false;
	 }	 
	 
function orderrecover(id)
	 {
	 $("#orderloader_"+id).show();
	 xajax_orderrecover(id);
	 return false;
	 }	 

	 
function savemail()
	 {
	 mail=$("#infomail").attr("value");
	 
	 xajax_savemail(mail);
	 return false;
	 }	 	 
function savetext()
	 {
	 tex=$("#infotext").attr("value");
	 
	 xajax_savetext(tex);
	 return false;
	 }	 
	 
 
	 
function ordersavechange(id)
	 {
	 h=$("#ordertitleinput_"+id).attr("value");
	 t=$("#ordertextarea_"+id).attr("value");
	 $("#orderchangeloader_"+id).show();
	 $("#ordersavechange_"+id).hide();
	 xajax_ordersavechange(h,t,id);
	 return false;
	 }	 
	 
function orderlist(stat)
	 {	 
	 $("#orderuserloader").show();
	 xajax_orderlist(stat);
	 return false;
	 }	 
	 
function orderlistadmin(stat)
	 {
	 $("#orderadminloader").show();
	 xajax_orderlistadmin(stat);
	 return false;
	 }
	 
$(function() { 
    // setup ul.tabs to work as tabs for each div directly under div.panes 
    $("ul.tabs").tabs("div.panes > div"); 
});