Its sharepoint 2010... I got the solution ..Here I providing the code for sharepoint newbie like me
<script type="text/javascript">
function open(Id){
var options = {
url: "../_layouts/listform.aspx?PageType=6&ListId={24b92116-5f1f-4866-97f8-13693b75cc47}&ID="+Id,
title: "Edit",
allowMaximize: true,
showClose: true,
width: 625,
height: 525,
dialogReturnValueCallback: silentCallback};
SP.UI.ModalDialog.showModalDialog(options);}
function silentCallback(dialogResult, returnValue) {
}
function refreshCallback(dialogResult, returnValue) {
SP.UI.Notify.addNotification('Operation Successful!&apos

;
SP.UI.ModalDialog.RefreshPage(SP.UI.DialogResult.OK);
}
</script>
<a href="javascript

pen({@ID})" target="_self">