php代码转入js [关闭]

the javascript code in php is

<script language="JavaScript" type="text/javascript">
xajax_getCountry('<?php echo $row['mradio_area']?$row['mradio_area']:0 ?>',
<?php echo $row['mradio_country']?$row['mradio_country']:0 ?>,
<?php echo ($row['mradio_rate']==1?1:0); ?>);
</script>

I want to put it into the .js file.

How do I change the <?php echo $row into js format?

Thanks a lot for any answer!

i just don't know what you are doing because there is no javascript at all but if you want to make this as javascript .js file set the headers of this php file using this code

header("Content-type: text/javascript");