function MM_openBrWindow(theURL,winName,features) { //v2.0

itemClicked()

	
	
  x=window.open(theURL,winName,features);
	x.focus()
if (typeof window.pageYOffset!="undefined"){
	timMoveID=setInterval("timescroll()",50)

}
}


function load_actions(){
	if(change_password_group!=""){
		MM_openBrWindow(pthstr+"users/edit_contact_details.asp?group="+change_password_group,"changepw","status=yes,scrollbars=yes,resizable=yes,width=445,height=550")
	}
}

function FIND(item) {
	if (document.all) return(document.all[item]);
	if (document.getElementById) return(document.getElementById(item));
	return(false);
}

function divchange(thisname,hasicon,hasextra){
	
	if(typeof hasicon=="undefined"){
		ob=FIND(thisname)
	}else{
		textname=thisname+"text"
		iconname=thisname+"icon"
		ob=FIND(textname)
		ob2=FIND(iconname)
		if(typeof hasextra!="undefined" && !!hasextra){
			ob3=FIND(hasextra)
		}
	}
	
	
	if(typeof ob!="undefined"){

		if(ob.style.visibility!="" && typeof ob.mode=="undefined"){
			ob.mode=1
		}
		if(ob.mode==1){
			ob.mode=0
			ob.style.visibility="hidden"
			//ob.style.overflow="hidden"
			ob.style.display="none"
			if(typeof ob2!="undefined"){
				ob2.src="../assets/icons/Add-(16x16).gif"
			}
			if(typeof ob3!="undefined"){
				ob3.style.visibility="hidden"
				ob3.style.display="none"
			}
		}else{
		
			ob.mode=1
			ob.style.visibility="visible"
			//ob.style.overflow="visible"

			ob.style.display="block"
			
			if(typeof ob2!="undefined"){
				ob2.src="../assets/icons/Remove-(16x16).gif"
			}
			if(typeof ob3!="undefined"){
				ob3.style.visibility="visible"
				ob3.style.display="block"
			}
			
		}
	}
}

function rowschange(thisname){
	var rowfound=1
	var rowcount=1
	while(rowfound==1){
		var ob=document.getElementById(thisname+"_row"+rowcount)
		if(typeof ob!="undefined" && !!ob){
			if(ob.style.display=="none"){
				ob.style.display=""
			}else{
				ob.style.display="none"
			}
			rowcount++
			
			var map_ob=document.getElementById(thisname+"_row"+rowcount+"_map")
			if(typeof map_ob!="undefined" && !!map_ob){
				if(map_ob.style.display=="none"){
					map_ob.style.display=""
					var mapframe_ob=document.getElementById(thisname+"_row"+rowcount+"_mapframe")
					if(mapframe_ob.src==""){
						mapframe_ob.src=mapframe_ob.src_pending
					}
				}else{
					map_ob.style.display="none"
				}
				
			}
		}else{
			rowfound=0
		}
	}
}