function shwDialog(aTitle,aMessage) { // Can be called to display customized Alert Message is = new BrowserCheck(); alertBox = (is.VER5) ? document.getElementById("alertLayer").style : (is.NS) ? document.layers["alertLayer"] : document.all["alertLayer"].style; //alertBox = document.getElementById("alertLayer").style; imgbck = document.getElementById("bckimg").style; if(((document.getElementById("SrchProcessid"))!=null) && (document.getElementById("SrchProcessid")!="undefined")){ prcs = document.getElementById("SrchProcessid").style; prd = document.getElementById("SrchProdGroupid").style; } if(((document.getElementById("Countryid"))!=null) && (document.getElementById("Countryid")!="undefined")){ cntid = document.getElementById("Countryid").style; } thisText = aMessage.length; if (aTitle.length > aMessage.length){ thisText = aTitle.length;} aWidth = (thisText * 5) + 80; aHeight = 100; if (aWidth < 150){ aWidth = 200; } if (aWidth > 350){ aWidth = 350; } if (thisText > 60){ aHeight = 110; } if (thisText > 120){ aHeight = 130; } if (thisText > 180){ aHeight = 150; } if (thisText > 240){ aHeight = 170; } if (thisText > 300){ aHeight = 190; } if (thisText > 360){ aHeight = 210; } if (thisText > 420){ aHeight = 230; } if (thisText > 490){ aHeight = 250; } if (thisText > 550){ aHeight = 270; } if (thisText > 610){ aHeight = 290; } var scrOfX = 0, scrOfY = 0; if( typeof( window.pageYOffset ) == 'number' ) { scrOfY = window.pageYOffset; scrOfX = window.pageXOffset; } else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) { scrOfY = document.body.scrollTop; scrOfX = document.body.scrollLeft; } else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) { scrOfY = document.documentElement.scrollTop; scrOfX = document.documentElement.scrollLeft; } if(scrOfY ==0) scrOfY = (document.body.clientHeight - aHeight) else scrOfY = ((scrOfY+screen.Height) - aHeight) if(scrOfX ==0) scrOfX = (document.body.clientWidth - aWidth) else scrOfX = ((scrOfX+document.body.clientWidth) - aWidth) document.all.alertLayer.innerHTML = "
| " + " " + aTitle + " | Close | ||
|   | " + aMessage + " | ||
| | |||