// BeachCombersEaselArtGallery - General scripts
var popUpWin;
function popUpDetailes(path,w,h){
	if(w==null) w = 480;
	if(h==null) h = 250;
	if(path==null) return;
	//
	if(popUpWin!=null) if(!popUpWin.closed && popUpWin.location) popUpWin.window.close();
	//
	popUpWin	= window.open(path, "popUpWin", "toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width="+w+",height="+h+",left = 100,top = 100");
}
//
function markCurrentSectionByID(sectionID){
	var subID									= "sub_" + sectionID;
	var obj										= document.getElementById(sectionID);	if(obj==null)			return;	
	obj.style.backgroundColor		= "#FFFFCC";	
	//obj.style.color							= "#CC6666";	
	var subObj								= document.getElementById(subID);			if(subObj==null)	return;	
	subObj.style.color					= "#CC6666";	
}
//
function markItemByID(itemID){
	var obj										= document.getElementById(itemID);	if(obj==null)			return;	
	obj.style.backgroundColor		= "#FFFFCC";	
}
//
function popupDeleteWarning(url,msg){
	if(url==null || msg == null) return;
	warning	= confirm(msg);
	if(warning == true)	this.location.href=url;
	return;
}