
///////////////////////////////////////////////////////
// Slideshow edit dialog 

// return true if the dialog returns values
function doSlideshowDialog(albumTitleId, intervalId, xmlImageListId) 
{
	var albumTitleObject = document.getElementById(albumTitleId);
	var intervalObject = document.getElementById(intervalId);
	var imageListObject = document.getElementById(xmlImageListId);
	
	var p = new Object();
	p.xmlImgList = imageListObject.value;
	p.albumName = albumTitleObject.value;
	p.interval = intervalObject.value;

	var v = window.showModalDialog(SsDialogUrl, p, 
		"scroll:no;center:yes;help:no;status:yes;dialogHeight:500px;dialogWidth:720px");
	
	if(v) 
	{
		albumTitleObject.value = v.title;
		intervalObject.value = v.interval;
		imageListObject.value = v.albumImgsStr;
		
		return true;
	}
	
	return false;
}
