function targetopener(mylink) {
	if (! (window.focus && window.opener))return true;
	window.opener.focus();
	window.opener.location.href=mylink.href;
	window.focus();
	return false;
}

function strength_window() {
    var props = "scrollBars=no,resizable=no,toolbar=no,menubar=no,location=no,directories=no, width=510,height=310,left=350,top=50";
    window.open("/strengths/main.html", "strength_win", props).focus();
}

// pops up small window containing url
function small_window( url ) {
    var props = "scrollBars=yes,resizable=no,toolbar=no,menubar=no,location=no,directories=no,width=350,height=200,left=300,top=200";
    window.open( url, "sm_win", props).focus();
}

// pops up medium window containing url
function med_window( url ) {
    var props = "scrollBars=yes,resizable=no,toolbar=no,menubar=no,location=no,directories=no,width=450,height=400,left=300,top=200";
    window.open( url, "med_win", props).focus();
}

// pops up large window containing url
function large_window( url ) {
    var props = "scrollBars=yes,resizable=no,toolbar=no,menubar=no,location=no,directories=no,width=640,height=700,left=300,top=0";
    window.open( url, "lg_win", props).focus();
}

function showHide(element) {	
   if (document.getElementById) {		
	// W3C standard		
	var style2 = document.getElementById(element).style;	
	style2.display = style2.display ? "" : "none";	
   }	
   else if (document.all) {	
        // old MSIE versions		
	var style2 = document.all[element].style;		
	style2.display = style2.display ? "" : "block";	
   }	
   else if (document.layers) {	
	// Netscape 4		
	var style2 = document.layers[element].style;		
	style2.display = style2.display ? "" : "block";	
   }
}

function hideDiv(element) { 
   if (document.getElementById) {		
	// W3C standard		
	var style2 = document.getElementById(element).style;	
	style2.display = "none";	
   }	
   else if (document.all) {	
        // old MSIE versions		
	var style2 = document.all[element].style;		
	style2.display = "block";	
   }	
   else if (document.layers) {	
	// Netscape 4		
	var style2 = document.layers[element].style;		
	style2.display = "block";	
   }
} 

function showDiv(element) { 
   if (document.getElementById) {		
	// W3C standard		
	var style2 = document.getElementById(element).style;	
	style2.display = "";
   }	
   else if (document.all) {	
        // old MSIE versions		
	var style2 = document.all[element].style;		
	style2.display = "";	
   }	
   else if (document.layers) {	
	// Netscape 4		
	var style2 = document.layers[element].style;		
	style2.display = "";	
   }
} 

function hideFormFields()
{
	var trNodeList = document.getElementsByTagName('tr'); 
	var name;
	for (i = 0; i < trNodeList.length; i++) { 
		// get name
		if (trNodeList[i].getAttribute('class')){ 
			// alert(trNodeList[i].getAttribute('class')); 
			name = trNodeList[i].getAttribute('class');
		} else { 
			// alert(trNodeList[i].className); 
			name = trNodeList[i].className
		}
		
		if (name != null && name == "hideMe") {
			// set visibility
			trNodeList[i].style.display = "none";
		}
	} 
}

function showFormFields()
{
	var trNodeList = document.getElementsByTagName('tr'); 
	var name;
	for (i = 0; i < trNodeList.length; i++) { 
		// get name
		if (trNodeList[i].getAttribute('class')){ 
			// alert(trNodeList[i].getAttribute('class')); 
			name = trNodeList[i].getAttribute('class');
		} else { 
			// alert(trNodeList[i].className); 
			name = trNodeList[i].className
		}
		
		if (name != null && name == "hideMe") {
			// set visibility
			trNodeList[i].style.display = "";
		}
	} 
}
