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

function displayMessage(url, width, height)
{
	
	messageObj.setSource(url);
	messageObj.setCssClassMessageBox(false);
	messageObj.setSize(width,height);
	messageObj.setShadowDivVisible(true);	// Enable shadow for these boxes
	messageObj.display();
}

function displayStaticMessage(messageContent, width, height ,cssClass)
{
	messageObj.setHtmlContent(messageContent);
	messageObj.setSize(width,height);
	messageObj.setCssClassMessageBox(cssClass);
	messageObj.setSource(false);	// no html source since we want to use a static message here.
	messageObj.setShadowDivVisible(true);	// Disable shadow for these boxes	
	messageObj.display();
}

function closeMessage()
{
	messageObj.close();	
}

function modalConfirm(url, html, width, height) {
    displayMessage(html, width, height);
    currenturl = url;
}

function modalStaticConfirm(url, html, width, height) {
    displayStaticMessage(html, width, height);
    currenturl = url;
}

function verify(verify_state) {
    closeMessage();
    if (verify_state) {
        parent.document.location.href=currenturl;
        modalStaticConfirm('#','<h1>Proszę czekać!</h1>',200,30);
    }
}

function displayHelp(html, width, height) {
    displayMessage(html, width, height);
    currenturl = '#';
}
