
function GeneratePassword(){var password="";var password_length=rand(6,10);var i;var assci_segment;for(i=0;i<password_length;i++){assci_segment=rand(1,3);if(assci_segment==1)password=password+String.fromCharCode(rand(48,57));else if(assci_segment==2)password=password+String.fromCharCode(rand(65,90));else
			password=password+String.fromCharCode(rand(97,122))}password=password.replace('I','i');password=password.replace('O','o');password=password.replace('l','L');document.getElementById('password').value=password;document.getElementById('password_confirm').value=password;return password}function rand(n,m){return(n+Math.floor(Math.random()*(m-n+1)))}function convertType(elem){var input=document.createElement('input');input.id=elem.id;input.value=elem.value;input.onfocus=elem.onfocus;input.onblur=elem.onblur;input.className=elem.className;if(elem.type=='text'){input.type='password'}else{input.type='text'}elem.parentNode.replaceChild(input,elem);return input}function convertToTxt(elem){var input=document.createElement('input');input.id=elem.id;input.value=elem.value;input.onfocus=elem.onfocus;input.onblur=elem.onblur;input.className=elem.className;if(elem.type=='text'){return elem}else{input.type='text'}elem.parentNode.replaceChild(input,elem);return input}