Please download the jquery library before using this code
function mask(method){
//This is the window you want to mask. What I want to mask here is an iframe window. You can also use var winObj=$(window)
var winObj=window.top.$("body").find("iframe[name='dialognormaliframe']");
if(typeof method == "undefined"){
method="open";
}
if (method == "open") {
if (maskStackCount <= 0 ) {
var mask = $("