﻿
var MyDialogObject = new Object();

function ShowDialog(href,w,h,func,argument,title){
MyDialogObject = new Object();
var arg= new Object();
arg.src=href;
arg.width=w;
arg.height=h;
arg.argument = argument;
arg.title = title;
MyDialogObject = window.showModalDialog("/Dialog.aspx",arg,"dialogWidth:"+w+"px;dialogHeight:"+h+"px;status=no;scroll=no");
if(MyDialogObject!=null && func!=null){
 setTimeout(func+"()",1);   
}

}