View file flud/js/js_inc.php

File size: 602B
<script>
if(window.opener)
{

function smyle(_obj_name, _text)
{
var area=window.opener.document.getElementsByName(_obj_name).item(0);

if ((area.selectionStart)||(area.selectionStart=='0'))
{
  var p_start=area.selectionStart;
  var p_end=area.selectionEnd;
  area.value=area.value.substring(0,p_start)+_text+area.value.substring(p_end,area.value.length);
}
else
{

if (document.selection)
{
  area.focus();
  sel=window.opener.document.selection.createRange();
  sel.text=_text;
}
}

}
 smyle('<?php echo $ms_pol?>',' <?php echo $past;?> ');
 window.close();
}

</script>