sendDataToServer ("post_login.cgi?data=" + convertToBase64(a), loginReturnValue) alert (loginReturnValue); alert (convertToBase64(a)); }