try this code. its working well :-)
<script type="text/javascript">
$(function () {
$('#date2').focus(function () {
var istDateVal = $("#date1").val().split("/");
var istDate = new Date();
istDate.setFullYear(istDateVal[2], istDateVal[1] - 1, istDateVal[0]);
istDate.setMonth(istDate.getMonth() - 1);
$('#date2').val(istDate.getDate() + "/" + (istDate.getMonth() + 1) + "/" + istDate.getFullYear())
});
});
</script>
<div>
<input type="text" date1=" /><br mode=" hold=" /> <input type=" text="" id="date2" />
</div>