﻿<!-- 

// PUBLIC 
	
function ChangeDivStatus( divObject ) {

	//<span id="spnSpanName" style="Display: block "> 
	

	if (divObject.style.display == 'block' ) {
		divObject.style.display = 'none'
		} 
	else {
	    HideAllDivs ( true ) ;
		divObject.style.display = 'block'
		}
	}
	
	
// PRIVATE 
	
	
function HideAllDivs( blnHide ) {
	var i;
	var strText;

	for (i = 0; i < document.all.length; i++) {
		if (document.all(i).tagName == "DIV") {
			if (document.all(i).id.substring(0,3).toLowerCase() == "swp") {
			
				if (blnHide) {  strText = "none";   }
				else {          strText = "block";  }
					
				document.getElementById(document.all(i).id).style.display = strText ;
			}			
		}
	}
	
}


function ChangeDiv ( strDivName, strNewStyle ) {
	var i;
	
	for (i = 0; i < document.all.length; i++) {
	
		if (document.all(i).tagName == "div") {
			if (document.all(i).id == strDivName) {
				document.getElementById(document.all(i).id).style.display = strNewStyle;
			}			
		}
	}
	
}
	
//-->
