<SCRIPT language="JavaScript">
function calldms(dmsid,aicod)
{
mywindow = window.open("http://www.cebuv.com/dms/dms.php?dmsid="+dmsid+"&aicod="+aicod,"mywindow","location=0,status=0,scrollbars=1,width=550,height=360,top=200,left=400");
}
</SCRIPT>
'<p align="center"><font face="Arial" size="2"><a href="javascript: calldms(0,'.$row['aidata_code'].')">Add Doc</font>
If it is from a button then OnClick="calldms(0,'.$row['aidata_code'].')"