// JavaScript Document


							// ------------------ for AJAX alert ---------------//
					
						function myAlert(strTitle, message) {
							var win1 = new Zapatec.AlertWindow(message, {title:strTitle, modal:true, width : 800, height: 400, theme : "minimal", top: 100});
						}
		
						function myConfirm(strTitle, message) {
							var win1 = new Zapatec.ConfirmWindow(message, {title:strTitle, modal:true, width : 180, theme : "minimal", top: 100});
							win1.getResponse(function (res) {
								if (res == true) 
									alert("You have selected OK");
								else {
									alert("You have selected Cancel");
								}
							}); 
						}
						function myDialog(strTitle, message) {
							var win1 = new Zapatec.DialogWindow(message, {title : strTitle, buttons : ["Red", "Blue", "Yellow"], width : 230, theme : "minimal", top: 100});
							win1.getResponse(function (res) {
								alert(res + " is a nice color");
							});
						}
						
						// samol added
						
						function myAjaxDialog(strTitle, message) {
							var win1 = new Zapatec.DialogWindow(message, {title : strTitle, modal:true, buttons : ["<b> Close Window </b>"], width : 800, height: 400, theme : "minimal", top: 100});
							win1.getResponse(function (res) {
								// alert(res + " is a nice color");								
							});
						}
						
							// ------------------ end of AJAX alert ---------------//
