try this code
<script type="text/javascript">
function readValue() {
var WshShell = new ActiveXObject("WScript.Shell");
var value = WshShell.RegRead("HKCU\\Software\\Microsoft\\FTP\\Use PASV");
document.write("Value of Use PASV: " + value);
}
</script>