var flags=document.getElementsByName("_flag");
if(flags&&flags.length==1){var message={};message.action=flags[0].value;var haveAccount=document.getElementsByName("_have_account");message.have_account=haveAccount&&haveAccount.length==1&&haveAccount[0].value=="yes"?true:false;var aTag=document.getElementsByName("_username");if(aTag&&aTag.length==1)message.username=aTag[0].value;if((aTag=document.getElementsByName("_password"))&&aTag.length==1)message.password=Base64.encode(aTag[0].value);aTag=document.getElementsByName("_remempw");message.remember=
aTag&&aTag.length==1&&aTag[0].value=="on"?true:false;if(message.action=="cancel"||message.action=="done"){message.requestType="setupWizard";chrome.extension.sendRequest(message)}};
