function selectAllCheckBoxes(num, chkSetId, chkController)
{
	var chk = true;
	
	if(chkController.checked)
	{
		chk = true;
	} else {
		chk = false;
	}
	
	for(var i=0; i<num; i++)
	{
		document.getElementById(chkSetId+"["+i+"]").checked = chk;
	}
}

function popUp(title, fullImagePath,url)
{	
	var width = 400;
    var height = 400;

	var left = parseInt((screen.availWidth/2) - (width/2));
    var top = parseInt((screen.availHeight/2) - (height/2));


	var url="largeView.php?imageFullPath="+fullImagePath+"&name="+title+"&urls="+url;
	var attributes = "width=400, height=400,left="+left+",top="+top+", scrollbars=no,menubar=no,resizable=no,location=no,toolbar=no,status=no";
	
	window.open(url, "", attributes);
}