    messageObj = new DHTML_modalMessage();    // We only create one object of this class
    messageObj.setShadowOffset(0);    // Large shadow

    function showDialogPage(url,w,h,header,type,OKhandler,cancelHandler)
    {
        //messageObj.setSource(url);
        messageObj.setCssClassMessageBox(false);
        messageObj.setSize(w,h);
        messageObj.setShadowDivVisible(false);    // Enable shadow for these boxes
        var pars="url="+encodeURIComponent(url)+"&topic="+encodeURIComponent(header)+"&type="+type+"&OK_HANDLER="+OKhandler+"&CANCEL_HANDLER"+cancelHandler;
        new Ajax.Updater({success:"DHTMLSuite_modalBox_contentDiv"},"js/modal_wnd_dsgn/pop_up.php",{method:"post",parameters:pars,evalScripts:true});
        messageObj.display();
        document.getElementById("DHTMLSuite_modalBox_contentDiv").style.background="transparent";
        document.getElementById("DHTMLSuite_modalBox_contentDiv").style.border="0";
        document.getElementById("DHTMLSuite_modalBox_contentDiv").style.padding="0";
        document.getElementById("DHTMLSuite_modalBox_contentDiv").style.align="center";
        document.getElementById("DHTMLSuite_modalBox_contentDiv").opacity="0.9";
    }
    
    function showDialogBox(text,header,type,OKhandler,cancelHandler)
    {
        //messageObj.setSource(url);
        messageObj.setCssClassMessageBox(false);
        messageObj.setSize(200,300);
        messageObj.setShadowDivVisible(false);    // Enable shadow for these boxes
        var p="text="+encodeURIComponent(text)+"&type="+type+"&header="+encodeURIComponent(header)+"&OK_HANDLER="+OKhandler+"&CANCEL_HANDLER"+cancelHandler;
        new Ajax.Updater({success:"DHTMLSuite_modalBox_contentDiv"},"js/modal_wnd_dsgn/static_pop_up.php",{method:"post",parameters:p,evalScripts:true});
        messageObj.display();
        document.getElementById("DHTMLSuite_modalBox_contentDiv").style.border="0";
        document.getElementById("DHTMLSuite_modalBox_contentDiv").style.padding="0";
        document.getElementById("DHTMLSuite_modalBox_contentDiv").style.align="center";
        document.getElementById("DHTMLSuite_modalBox_contentDiv").style.background="transparent";
    }
    
    function checkmail(email)
    {
        var emailfilter=/^\w+[\+\.\w-]*@([\w-]+\.)*\w+[\w-]*\.([a-z]{2,4}|\d+)$/i
        return returnval=emailfilter.test(email)
    }
    
    function closeMessage()
    {
        messageObj.close();
    }