please help me out in passing php variables into javascript variables. here s my code
<body>
<?php
$yr="2013";
$y=(int)$yr;
$mo="06";
$m=(int)$mo;
$da="04";
$d=(int)$da;
$hr="14";
$h=(int)$hr;
$mi="30";
$min=(int)$mi;
?>
<script type="text/javascript">
var current="Logout";
var year=<?php echo $y;?>;
var month=<?php echo $m;?>;
var day=<?php echo $d;?>;
var hour=<?php echo $h;?>;
var minute=<?php echo $min;?>;
....
// displaying js variables....
....
<script>
</body>
out put is showing like NaN:NaN:NaN:NaN
Im New to programming please help me and thanks in advance