// toggle display visibility

function toggle( targetId ){
 	 if (document.getElementById){
  		target = document.getElementById( targetId );
  			if (target.style.display == "none"){
  				target.style.display = "block";
  			} else {
  				target.style.display = "none";
  			}
  		}
	}


function toggleme( targetId ){
 	 if (document.getElementById){
  		target = document.getElementById( targetId );
  			if (target.style.display == "none"){
  				target.style.display = "block";
  			} else {
  				target.style.display = "none";
  			}
  		}
	}


function togglei( targetId ){
 	 if (document.getElementById){
  		target = document.getElementById( targetId );
  			if (target.style.display == "none"){
  				target.style.display = "inline";
  			} else {
  				target.style.display = "none";
  			}
  		}
	}


function turnOff( targetId ){
 	 if (document.getElementById){
  		target = document.getElementById( targetId );
  				target.style.display = "none";
  			}
  		}
		
function turnOn( targetId ){
 	 if (document.getElementById){
  		target = document.getElementById( targetId );
  				target.style.display = "block";
  			}
  		}

function hide( targetId ){
 	 if (document.getElementById){
  		target = document.getElementById( targetId );
  				target.style.visibility = "hidden";
  			}
  		}
		
function show( targetId ){
 	 if (document.getElementById){
  		target = document.getElementById( targetId );
  				target.style.visibility = "visible";
  			}
  		}


function flowOff( targetId ){
 	 if (document.getElementById){
  		target = document.getElementById( targetId );
  				target.style.overflow = "hidden";
  			}
  		}
  		
function flowOn( targetId ){
 	 if (document.getElementById){
  		target = document.getElementById( targetId );
  				target.style.overflow = "auto";
  			}
  		}

function getDt(objectId) {
	if (document.all && !document.getElementById) {
		return document.all(objectId)
	} else {
		return document.getElementById(objectId)
	}
}
function tabOn(objectId) {
        if(getDt(objectId).className == "")
        	getDt(objectId).className = "active";
        else
        	getDt(objectId).className = "active";
}
function tabOff(objectId) {
        if(getDt(objectId).className == "")
        	getDt(objectId).className = "";
        else
        	getDt(objectId).className = "";
}


// popcorn!
var newwindow;
function poptastic(url)
{
	newwindow=window.open(url,'name','height=450,width=530');
	if (window.focus) {newwindow.focus()}
}




