// JavaScript Document


function confirmDelete() {

	var answer = confirm ("Are you sure you want to delete this album?");
	if (answer){
		//
		return true;
		//
	}else{
		return false;
	
	}
}

function confirmDeletePhoto() {

	var answer = confirm ("Are you sure you want to delete this photo?");
	if (answer){
		//
		return true;
		//
	}else{
		return false;
	
	}
}




function CheckDeletePhotos() {
	var isItChecked = false;
	for (var i = 0; i < document.EditPhotos.DeleteImage.length; i ++)
		{
			if (document.EditPhotos.DeleteImage[i].checked) {
				isItChecked = true;	
				break;
			}
		}
	if(isItChecked == true)
	
	{ 
	
		var answer = confirm("Are you sure you want to delete your checked photos?");
		if (answer) {
			return true;
		} else {
			return false;
		}
	
	} 
}
