/* 
Show Alert and ShowConfirm return an array with the first item (index 0) being 
	0 if window was closed
	1 if the ok button
	2 if the cancel button was pressed
example ReturnValue=ShowConfirm('delete item?','../../');
if(ReturnValue[0]==1){ THEN OK TO DELETE}
*/

function ShowAlert(text,PathToRoot){
		return showModalDialog(PathToRoot + "Reuse/ModalWindow.htm",
  				text			+ "|***|" + 
  				""				+ "|***|" +
  				0				+ "|***|" +
  				"1"				+ "|***|" +
  				"OK",
				"dialogHeight: 120px; dialogWidth: 640px;  help: No; status: No; "); 
}
function ShowAlertSizable(text,PathToRoot,nHeight,nWidth){
		return showModalDialog(PathToRoot + "Reuse/ModalWindow.htm",
  				text			+ "|***|" + 
  				""				+ "|***|" +
  				0				+ "|***|" +
  				"1"				+ "|***|" +
  				"OK",  
				"dialogHeight: " + nHeight + "px; dialogWidth: " + nWidth + "px;  help: No; status: No; "); 
}
function ShowConfirm(text,PathToRoot){
		return showModalDialog(PathToRoot + "Reuse/ModalWindow.htm",
  				text			+ "|***|" + 
  				""				+ "|***|" +
  				0				+ "|***|" +
  				"2"				+ "|***|" +
  				"OK"			+ "|***|" +
  				"CANCEL",
				"dialogHeight: 120px; dialogWidth: 640px;  help: No; status: No; "); 
}

function ShowConfirmSizable(text,PathToRoot,nHeight,nWidth){
		return showModalDialog(PathToRoot + "Reuse/ModalWindow.htm",
  				text			+ "|***|" + 
  				""				+ "|***|" +
  				0				+ "|***|" +
  				"2"				+ "|***|" +
  				"OK"			+ "|***|" +
  				"CANCEL",
				"dialogHeight: " + nHeight + "px; dialogWidth: " + nWidth + "px;  help: No; status: No; "); 
}

