$value = "
<script type=\"text/javascript\">
// Popup window code
function Allocate(url) {
popupWindow = window.open(
url,'popUpWindow','height=auto,width=900,left=20,top=30-,autocenter=yes,resizable=no,scrollbars=no,copyhistory=no,addressbar=no,menubar=no,location=no,directories=no,status=no,toolbar=no top=30-')
}
</script>
<a href=\"Javascript:Allocate('http://10.*.*.*/archive/ViewerJS/#../files/".$data["Attach"]."');\"><img src=\"images/pdfsmall.png\"></a>";