/**
 * Diese Funktion ï¿½ffnet den acc_content, also die Mï¿½glichkeit, sein Konto zu bearbeiten
 **/
function manage_account() {
   	openDatabase('account');
	new Ajax.Request('PHP/account/existRequestAccount.php', {
		method: 'get', parameters: 'unique=' + new Date().getTime(), 
		onSuccess: function(t) { byId('accountBlock').innerHTML = t.responseText; },
		onFailure: function(t) { alert('Kontoinformationen konnten nicht abgerufen werden!'); }
	});
}

var newUser = '';
var newUserResData = '';

/**
 * Diese Funktion ï¿½ffnet den admin_content, also quasi den Admin-Bereich
 */
function admin_interface() {
	openDatabase('admin');
	byId('admin_loading').style.display = 'block';
	new Ajax.Request('PHP/account/existRequestAdminInterface.php', {
		method: 'get', parameters: 'unique=' + new Date().getTime(), 
		onSuccess: function(t) {
			var data = t.responseText;
			byId('adminBlock').innerHTML = data.substring(0,data.indexOf('*_*'));
			//data = data.substring(data.indexOf('*_*')+3,data.indexOf('*_*')+4);
			//byId('adminBlock').innerHTML = "--"+data+"--";
			//if(data == '9') alert('asd');
			//if(byId('adminUserRights_9').innerHTML == 'content') byId('right_to_edit_9').checked = "true";
			/*
			for (var i=1; i<=data; i++) {
				if(byId('adminUserRights_'+i).innerHTML == 'content') byId('right_to_edit_'+i).checked = "true";
			}*/
			byId('admin_loading').style.display = 'none';
			if(newUser!='') edit_user(newUser,newUserResData);
		},
		onFailure: function(t) { alert('Administratorinterface konnte nicht geladen werden!');	}
	});
}

/**
 *  Die Funktion erzeugt ein Eingabefeld fÃ¼r das geforderte Feld im Informationsblock
 *  Originalname: edit_IB_xxx(field) in fffi_db-person.js
 **/

var IB_xxx_save = new Array();

function edit_fullName(name) {
	IB_xxx_save['fullName'] = byId('account_fullName').innerHTML;
	
	var elem = document.createElement('input');
	elem.type = 'text';
	elem.id = 'account_fullName_edit';
	elem.value = replaceHTMLChars(trim(byId('account_fullName').innerHTML));
	elem.className = 'standardInput';
	elem.onkeydown = function(event) { if(event.keyCode == 13) save_fullName(name) }
	
	var children = byId('account_fullName').parentNode.childNodes;
	for(var i = 0; i < children.length; i++) {
		if(children[i].className && children[i].className.indexOf('informationEdit') != -1)
			children[i].style.display = 'none';
		if(children[i].className && (children[i].className.indexOf('informationSave') != -1 || children[i].className.indexOf('informationRedo') != -1)) 
			children[i].style.display = 'inline';
	}
	byId('account_fullName').parentNode.replaceChild(elem, byId('account_fullName'));
}

/**
 *  Die Funktion speichert die ï¿½nderungen am Benutzernamen
 **/

function save_fullName(name) {
	if(byId('account_fullName_edit').value == '') alert('Bitte geben Sie etwas ein!');
	else {
	new Ajax.Request('PHP/account/existSaveAccountName.php', {
			method: 'get', 
			parameters: 'unique=' + new Date().getTime() + '&value=' + replaceSpecialChars(trim(byId('account_fullName_edit').value)) + '&name=' + name, 
			onSuccess: function(t) { if(t.responseText.indexOf('ERROR') != -1) alert(t.responseText);	},
			onFailure: function(t) { alert('Error ' + t.status + ' -- ' + t.statusText) }
	});

	var elem = document.createElement('span');
	elem.id = 'account_fullName';
	elem.innerHTML = getBreak(replaceSpecialChars(trim(byId('account_fullName_edit').value)));
	
	byId('welcome').innerHTML = 'Willkommen '+byId('account_fullName_edit').value;
	
	var children = byId('account_fullName_edit').parentNode.childNodes;
	for(var i = 0; i < children.length; i++) {
		if(children[i].className && children[i].className.indexOf('informationEdit') != -1)
			children[i].style.display = 'inline';
		if(children[i].className && (children[i].className.indexOf('informationSave') != -1 || children[i].className.indexOf('informationRedo') != -1))
			children[i].style.display = 'none';
	}	
	byId('account_fullName_edit').parentNode.replaceChild(elem, byId('account_fullName_edit'));
	}
}
/**
*  Die Funktion verwirft die ï¿½nderungen am Benutzernamen
**/

function redo_fullName() {
	var elem = document.createElement('span');
	elem.id = 'account_fullName';
	elem.innerHTML = IB_xxx_save['fullName'];
	
	var children = byId('account_fullName_edit').parentNode.childNodes;
	for(var i = 0; i < children.length; i++) {
		if(children[i].className && children[i].className.indexOf('informationEdit') != -1)
			children[i].style.display = 'inline';
		if(children[i].className && (children[i].className.indexOf('informationSave') != -1 || children[i].className.indexOf('informationRedo') != -1))
			children[i].style.display = 'none';
	}	
	byId('account_fullName_edit').parentNode.replaceChild(elem, byId('account_fullName_edit'));
}
/** 
 *  Die Funktion erzeugt ein Eingabefeld fï¿½r die Institution
 **/

function edit_institution(name) {
	IB_xxx_save['institution'] = byId('account_institution').innerHTML;
	
	var elem = document.createElement('input');
	elem.type = 'text';
	elem.id = 'account_institution_edit';
	elem.value = replaceHTMLChars(trim(byId('account_institution').innerHTML));
	elem.className = 'standardInput';
	elem.onkeydown = function(event) { if(event.keyCode == 13) save_institution(name) }
	
	var children = byId('account_institution').parentNode.childNodes;
	for(var i = 0; i < children.length; i++) {
		if(children[i].className && children[i].className.indexOf('informationEdit') != -1)
			children[i].style.display = 'none';
		if(children[i].className && (children[i].className.indexOf('informationSave') != -1 || children[i].className.indexOf('informationRedo') != -1)) 
			children[i].style.display = 'inline';
	}
	byId('account_institution').parentNode.replaceChild(elem, byId('account_institution'));
}

/**
 *  Die Funktion speichert die ï¿½nderungen an der Institution
 **/

function save_institution(name) {
	if(byId('account_institution_edit').value == '') alert('Bitte geben Sie etwas ein!');
	else {
	new Ajax.Request('PHP/account/existSaveAccountInstitution.php', {
			method: 'get', 
			parameters: 'unique=' + new Date().getTime() + '&value=' + replaceSpecialChars(trim(byId('account_institution_edit').value)) + '&name=' + name, 
			onSuccess: function(t) { if(t.responseText.indexOf('ERROR') != -1) alert(t.responseText);	},
			onFailure: function(t) { alert('Error ' + t.status + ' -- ' + t.statusText) }
	});

	var elem = document.createElement('span');
	elem.id = 'account_institution';
	elem.innerHTML = getBreak(replaceSpecialChars(trim(byId('account_institution_edit').value)));
	
	var children = byId('account_institution_edit').parentNode.childNodes;
	for(var i = 0; i < children.length; i++) {
		if(children[i].className && children[i].className.indexOf('informationEdit') != -1)
			children[i].style.display = 'inline';
		if(children[i].className && (children[i].className.indexOf('informationSave') != -1 || children[i].className.indexOf('informationRedo') != -1))
			children[i].style.display = 'none';
	}	
	byId('account_institution_edit').parentNode.replaceChild(elem, byId('account_institution_edit'));
	}
}

/**
 *  Die Funktion verwirft die ï¿½nderungen an der Institution
 **/

function redo_institution() {
	var elem = document.createElement('span');
	elem.id = 'account_institution';
	elem.innerHTML = IB_xxx_save['institution'];
	
	var children = byId('account_institution_edit').parentNode.childNodes;
	for(var i = 0; i < children.length; i++) {
		if(children[i].className && children[i].className.indexOf('informationEdit') != -1)
			children[i].style.display = 'inline';
		if(children[i].className && (children[i].className.indexOf('informationSave') != -1 || children[i].className.indexOf('informationRedo') != -1))
			children[i].style.display = 'none';
	}	
	byId('account_institution_edit').parentNode.replaceChild(elem, byId('account_institution_edit'));
}

/**
 * Diese Funktion ï¿½ffnet ein Eingabefeld, um das Passwort des angemeldeten Benutzers zu ï¿½ndern
 */

function change_password(name) {
	var elem1 = document.createElement('input');
	elem1.onkeydown = function(event) { if(event.keyCode == 13) save_password(name) } 
	elem1.type = 'password';
	elem1.id = 'account_password_edit_0';
	elem1.className = 'standardInput';
	
	var elem2 = document.createElement('input');
	elem2.onkeydown = function(event) { if(event.keyCode == 13) save_password(name) } 
	elem2.type = 'password';
	elem2.id = 'account_password_edit_1';
	elem2.className = 'standardInput';
	
	var passwText1 = document.createTextNode("Geben Sie hier das neue Passwort ein:");
	var passwText2 = document.createTextNode("Wiederholen Sie hier das neue Passwort:");
	var elem = document.createElement('span');
	elem.appendChild(passwText1);
	elem.appendChild(elem1);
	elem.appendChild(passwText2);
	elem.appendChild(elem2);
	
	var elem3 = document.createElement('span');
	elem3.innerHTML = 'Sicherheitsbestimmungen für das Passwort:<br/>mind. 1 Großbuchstabe<br/>mind. 1 Kleinbuchstabe<br/>mind. 1 Ziffer<br/>mind. 1 Sonderzeichen<br/>mind. 6 Zeichen';
	elem.appendChild(elem3);
	elem.id = 'account_password_edit';
	
	var children = byId('account_password').parentNode.childNodes;
	for(var i = 0; i < children.length; i++) {
		if(children[i].className && children[i].className.indexOf('informationEdit') != -1)
			children[i].style.display = 'none';
		if(children[i].className && (children[i].className.indexOf('informationSave') != -1 || children[i].className.indexOf('informationRedo') != -1)) 
			children[i].style.display = 'inline';
	}
	byId('account_password').parentNode.replaceChild(elem, byId('account_password'));
}

/**
 * Diese Funktion speichert die ï¿½nderung des Benutzerpassworts
 */
 
function save_password(name) {
	if(byId('account_password_edit_0').value == '' | byId('account_password_edit_1').value == '') alert('Bitte geben Sie etwas ein!');
	else if(!checkPass(byId('account_password_edit_0').value)) alert('Das Passwort erfüllt nicht die Sicherheitsbestimmungen!');
	else {
		if(byId('account_password_edit_0').value == byId('account_password_edit_1').value) {
			
			new Ajax.Request('PHP/account/existSaveAccountPassword.php', {
					method: 'get', 
					parameters: 'unique=' + new Date().getTime() + '&value=' + replaceSpecialChars(trim(byId('account_password_edit_0').value)) + '&name=' + name, 
					onSuccess: function(t) { if(t.responseText.indexOf('ERROR') != -1) alert(t.responseText);	},
					onFailure: function(t) { alert('Error ' + t.status + ' -- ' + t.statusText) }
			});
			
			var elem = document.createElement('span');
			elem.id = 'account_password';
			elem.innerHTML = '';
			
			var children = byId('account_password_edit').parentNode.childNodes;
			for(var i = 0; i < children.length; i++) {
				if(children[i].className && children[i].className.indexOf('informationEdit') != -1)
					children[i].style.display = 'inline';
				if(children[i].className && (children[i].className.indexOf('informationSave') != -1 || children[i].className.indexOf('informationRedo') != -1))
					children[i].style.display = 'none';
			}	
			byId('account_password_edit').parentNode.replaceChild(elem, byId('account_password_edit'));
		}else alert('Die Inhalte der Felder müssen identisch sein!');
	}
}

/**
 * Diese Funktion verwirft die ï¿½nderung am Passwort
 */
 
function redo_password() {
	var elem = document.createElement('span');
	elem.id = 'account_password';
	elem.innerHTML = '';
	
	var children = byId('account_password_edit').parentNode.childNodes;
	for(var i = 0; i < children.length; i++) {
		if(children[i].className && children[i].className.indexOf('informationEdit') != -1)
			children[i].style.display = 'inline';
		if(children[i].className && (children[i].className.indexOf('informationSave') != -1 || children[i].className.indexOf('informationRedo') != -1))
			children[i].style.display = 'none';
	}
	byId('account_password_edit').parentNode.replaceChild(elem, byId('account_password_edit'));
}

/**
 * Passwort-Checker
 */

function contains(strText, strPattern) {
	for (i = 0; i < strText.length; i++) { if (strPattern.indexOf(strText.charAt(i)) > -1) return true; }
 	return false;
}

function checkPass(strPass) {
	var counter=0;
	var digits				= "0123456789";
	var small_letters		= "abcdefghijklmnopqrstuvwxyzäöüß";
	var big_letters			= "ABCDEFGHIJKLMNOPQRSTUVWXYZÄÖÜ";
	var special_characters	= ",;:-_=+|\\/?^&!.@$Â£#*()%~<>{}[]";
	if (contains(strPass, digits)) counter++;
	if (contains(strPass, small_letters)) counter++;
	if (contains(strPass, big_letters)) counter++;
	if (contains(strPass, special_characters)) counter++;
	if (strPass.length > 5) counter++;
	if (counter==5) return true;
	return false;
}


/**
 * Diese Funktion Ã¤ndert ganze Benutzer im Admin-Interface
 */

function edit_user(name,id) {
	IB_xxx_save['user_name_'+id] = byId('adminUserName_'+id).innerHTML;
	IB_xxx_save['user_institution_'+id] = byId('adminUserInstitution_'+id).innerHTML;
	
	if(byId('right_to_edit_'+id).checked) IB_xxx_save['user_right_to_edit_'+id] = 1; else IB_xxx_save['user_right_to_edit_'+id] = 0;
	if(byId('right_to_write_'+id).checked) IB_xxx_save['user_right_to_write_'+id] = 1; else IB_xxx_save['user_right_to_write_'+id] = 0;
	if(byId('right_to_viewScrapbook_'+id).checked) IB_xxx_save['user_right_to_viewScrapbook_'+id] = 1; else IB_xxx_save['user_right_to_viewScrapbook_'+id] = 0;
	
	//alert(IB_xxx_save['user_right_to_edit_'+id]+'-'+IB_xxx_save['user_right_to_write_'+id]+'-'+IB_xxx_save['user_right_to_viewScrapbook_'+id]);
	
	var elem1 = document.createElement('input');
	var elem2 = document.createElement('input');
	elem1.type = 'text';
	elem2.type = 'text';
	elem1.id = 'adminUserName_'+id+'_edit';
	elem2.id = 'adminUserInstitution_'+id+'_edit';
	elem1.value = replaceHTMLChars(trim(byId('adminUserName_'+id).innerHTML));
	elem2.value = replaceHTMLChars(trim(byId('adminUserInstitution_'+id).innerHTML));
	elem1.className = 'standardInput';
	elem2.className = 'standardInput';
	elem1.onkeydown = function(event) { if(event.keyCode == 13) save_user(name,id) }
	elem2.onkeydown = function(event) { if(event.keyCode == 13) save_user(name,id) }
	
	var children = byId('adminUserName_'+id).parentNode.childNodes;
	for(var i = 0; i < children.length; i++) {
		if(children[i].className && children[i].className.indexOf('informationEdit') != -1)
			children[i].style.display = 'none';
		if(children[i].className && (children[i].className.indexOf('informationSave') != -1 || children[i].className.indexOf('informationRedo') != -1)) 
			children[i].style.display = 'inline';
	}
	
	byId('adminUserName_'+id).parentNode.replaceChild(elem1, byId('adminUserName_'+id));
	byId('adminUserInstitution_'+id).parentNode.replaceChild(elem2, byId('adminUserInstitution_'+id));
	
	byId('right_to_edit_'+id).disabled = false;
	byId('right_to_write_'+id).disabled = false;
	byId('right_to_viewScrapbook_'+id).disabled = false;
}

function save_user(name,id) {
	
	if(byId('adminUserName_'+id+'_edit').value == '') alert('Bitte geben Sie etwas ein!');
	else {	
		var fullName 	= replaceSpecialChars(trim(byId('adminUserName_'+id+'_edit').value));
		var institution = replaceSpecialChars(trim(byId('adminUserInstitution_'+id+'_edit').value));
		
		if(byId('right_to_edit_'+id).checked) IB_xxx_save['user_right_to_edit_'+id] = 1; else IB_xxx_save['user_right_to_edit_'+id] = 0;
		if(byId('right_to_write_'+id).checked) IB_xxx_save['user_right_to_write_'+id] = 1; else IB_xxx_save['user_right_to_write_'+id] = 0;
		if(byId('right_to_viewScrapbook_'+id).checked) IB_xxx_save['user_right_to_viewScrapbook_'+id] = 1; else IB_xxx_save['user_right_to_viewScrapbook_'+id] = 0;
		
		if(!byId('right_to_edit_'+id).checked && byId('right_to_write_'+id).checked) {
			IB_xxx_save['user_right_to_edit_'+id] = 1;
			byId('right_to_edit_'+id).checked = 'checked';
		}
		
		new Ajax.Request('PHP/account/existSaveAdminUser.php', {
				method: 'get', 
				parameters: 'unique=' + new Date().getTime() + 
							'&fullName=' + fullName + 
							'&institution=' + institution + 
							'&right_to_edit=' + IB_xxx_save['user_right_to_edit_'+id] +
							'&right_to_write=' + IB_xxx_save['user_right_to_write_'+id] +
							'&right_to_viewScrapbook=' + IB_xxx_save['user_right_to_viewScrapbook_'+id] + 
							'&name=' + name, 
				onSuccess: function(t) { if(t.responseText.indexOf('ERROR') != -1) alert(t.responseText); },
				onFailure: function(t) { alert('Error ' + t.status + ' -- ' + t.statusText) }
		});
	
		var elem1 = document.createElement('span');
		var elem2 = document.createElement('span');
		elem1.id = 'adminUserName_'+id;
		elem2.id = 'adminUserInstitution_'+id;
		elem1.innerHTML = getBreak(replaceSpecialChars(trim(byId('adminUserName_'+id+'_edit').value)));
		elem2.innerHTML = getBreak(replaceSpecialChars(trim(byId('adminUserInstitution_'+id+'_edit').value)));
		
		var children = byId('adminUserName_'+id+'_edit').parentNode.childNodes;
		for(var i = 0; i < children.length; i++) {
			if(children[i].className && children[i].className.indexOf('informationEdit') != -1)
				children[i].style.display = 'inline';
			if(children[i].className && (children[i].className.indexOf('informationSave') != -1 || children[i].className.indexOf('informationRedo') != -1))
				children[i].style.display = 'none';
		}	
		byId('adminUserName_'+id+'_edit').parentNode.replaceChild(elem1, byId('adminUserName_'+id+'_edit'));
		byId('adminUserInstitution_'+id+'_edit').parentNode.replaceChild(elem2, byId('adminUserInstitution_'+id+'_edit'));
		
		byId('right_to_edit_'+id).disabled = true;
		byId('right_to_write_'+id).disabled = true;
		byId('right_to_viewScrapbook_'+id).disabled = true;
	}	
}

function redo_user(name,id) {
	
	var elem1 = document.createElement('span');
	var elem2 = document.createElement('span');
	elem1.id = 'adminUserName_'+id;
	elem2.id = 'adminUserInstitution_'+id;
	elem1.innerHTML = IB_xxx_save['user_name_'+id];
	elem2.innerHTML = IB_xxx_save['user_institution_'+id];
	
	var children = byId('adminUserName_'+id+'_edit').parentNode.childNodes;
	for(var i = 0; i < children.length; i++) {
		if(children[i].className && children[i].className.indexOf('informationEdit') != -1)
			children[i].style.display = 'inline';
		if(children[i].className && (children[i].className.indexOf('informationSave') != -1 || children[i].className.indexOf('informationRedo') != -1))
			children[i].style.display = 'none';
	}	
	byId('adminUserName_'+id+'_edit').parentNode.replaceChild(elem1, byId('adminUserName_'+id+'_edit'));
	byId('adminUserInstitution_'+id+'_edit').parentNode.replaceChild(elem2, byId('adminUserInstitution_'+id+'_edit'));
		
	redo_user_checkbox('right_to_edit_'+id);
	redo_user_checkbox('right_to_write_'+id);
	redo_user_checkbox('right_to_viewScrapbook_'+id);
}

function redo_user_checkbox(elemId) {
	if(IB_xxx_save['user_'+elemId] == 0 && byId(elemId).checked) {
		var elem3 = document.createElement('input');
		elem3.id = elemId;
		elem3.type = 'checkbox';
		byId(elemId).parentNode.replaceChild(elem3, byId(elemId));
	}
	if(IB_xxx_save['user_'+elemId] == 1 && !byId(elemId).checked) byId(elemId).checked = 'checked';
	byId(elemId).disabled = true;
}

function create_newUser() {
	var elem = document.createElement('div');
	elem.id = 'newUserCreate';
	elem.innerHTML =  '<span class="informationEdit" style="display:block;" title="Benutzer speichern" onclick="save_newUser()">[speichern]</span>';
	elem.innerHTML += '<span class="informationRedo" style="display:block;" title="Neuen Benutzer verwerfen" onclick="redo_newUser()">[verwerfen]</span>';
	elem.innerHTML += '<span class="informationLabel">Neuen Benutzer anlegen</span>';
	elem.innerHTML += '<span class="informationLabel">Benutzername:</span>';
	elem.innerHTML += '<input class="standardInput" id="newUser_name" type="text" onkeydown="if(event.keyCode == 13) save_newUser()"/>';
	elem.innerHTML += '<span class="informationLabel">Passwort:</span>';
	elem.innerHTML += '<input class="standardInput" id="newUser_pass_0" type="password" onkeydown="if(event.keyCode == 13) save_newUser()"/>';
	elem.innerHTML += '<span class="informationLabel">Passwort wiederholen:</span>';
	elem.innerHTML += '<input class="standardInput" id="newUser_pass_1" type="password" onkeydown="if(event.keyCode == 13) save_newUser()"/>';
	elem.innerHTML += 'Sicherheitsbestimmungen für das Passwort:<br/>mind. 1 Großbuchstabe<br/>mind. 1 Kleinbuchstabe<br/>mind. 1 Ziffer<br/>mind. 1 Sonderzeichen<br/>mind. 6 Zeichen';
			
	byId('newUser').parentNode.appendChild(elem,byId('newUser'));
	byId('newUser').style.display = 'none';
}

function save_newUser() {
	if(byId('newUser_name').value == '') alert('Bitte geben Sie einen Benutzernamen ein!');
	/*
	 * Hier hab ich versucht, eine Funktion einzubauen, die prüft, ob der Nutzername schon existiert. Funzt leider noch nicht...
	 * 
	else {
		var children = byId('adminBlock').parentNode.childNodes;
		var liste='';
		for(var i = 0; i < children.length; i++) {
			children1 = children[i].childNodes;
			for(var j = 0; j < children1.length; j++) {
				if(children1[j].id) liste += ' '+children1[j].id;
			}			
		}
	}
	*/
	else if(byId('newUser_pass_0').value == '' | byId('newUser_pass_1').value == '') alert('Bitte geben Sie ein Passwort ein!');
	else if(byId('newUser_pass_0').value	  != byId('newUser_pass_1').value) alert('Die Inhalte der Felder müssen identisch sein!');
	else if(!checkPass(byId('newUser_pass_0').value)) alert('Das Passwort erfüllt nicht die Sicherheitsbestimmungen!');
	else {
		byId('newUser').style.display = 'block';
		var userName = replaceSpecialChars(trim(byId('newUser_name').value));
		new Ajax.Request('PHP/account/existSaveNewUser.php', {
			method: 'get', 
			parameters: 'unique=' + new Date().getTime() + '&name=' + userName + '&pass=' + replaceSpecialChars(trim(byId('newUser_pass_0').value)), 
			onSuccess: function(t) {
				if(t.responseText.indexOf('ERROR') != -1) alert(t.responseText);
				byId('newUserCreate').parentNode.removeChild(byId('newUserCreate'));
				data			= t.responseText;
				newUser			= userName;
				newUserResData	= data.substr(data.indexOf('*_*') + '*_*'.length);
				admin_interface();
				
				//alert(userName+'_'+data.substr(data.indexOf('*_*') + '*_*'.length));
				//edit_user(userName,data.substr(data.indexOf('*_*') + '*_*'.length));
			},
			onFailure: function(t) {
				alert('Error ' + t.status + ' -- ' + t.statusText)
				byId('newUserCreate').parentNode.removeChild(byId('newUserCreate'));
				admin_interface();
			}
		});	
	}
}

function redo_newUser() {
	byId('newUser').style.display = 'block';
	byId('newUserCreate').parentNode.removeChild(byId('newUserCreate'));
}






