
// CONTENT UPDATER FUNCTION
var jgajaxupdtr;
function jgupdtr(cdiv,rurl) {
 jgajaxupdtr =  new Ajax.Updater(
         cdiv,        // DIV id must be declared before the method was called
         rurl,        // URL
         {            // options
         method:'get'             
         }
         );

}

var dialogWin = null;
function openDialogWindow(conid,title) {
		
    if(!title) title = '';
    if (dialogWin != null) {
			Dialog.alert("Close the window 'Test' before opening it again!", {windowParameters:{ width:200, height:130}}); 
		}
		else {
			dialogWin = new Window('content_win', {className: "theme1",title: title, resizable: false, hideEffect:Element.hide, showEffect:Element.show})
			dialogWin.setContent($(conid).innerHTML, true, true)
			dialogWin.toFront();
			dialogWin.setDestroyOnClose();
			dialogWin.showCenter(true);
		}		
	}

