function showorhide(elementName){
	var isNS = (navigator.appName == "Netscape");

	var currentDiv = document.getElementById(elementName);

	if (isNS) {
		if (currentDiv.style.display == 'none') {
			currentDiv.style.display = 'table-row';
			saveCookie(elementName, 'table-row', 1);
		}
		else {
			currentDiv.style.display = 'none';
			saveCookie(elementName, 'none', 1);
		}
	}
	else {
		if (currentDiv.style.display == 'none') {
			currentDiv.style.display = 'block';
			saveCookie(elementName, 'block', 1);
		}
		else {
			currentDiv.style.display = 'none';
			saveCookie(elementName, 'none', 1);
		}
	}
}

function showElement(elementName){
	var isNS = (navigator.appName == "Netscape");

	var currentDiv = document.getElementById(elementName);

	if (isNS) {
		currentDiv.style.display = 'table-row';
	}
	else {
		currentDiv.style.display = 'block';
	}
}

function init() {
	var myPhysiciansStyle = readCookie('physicians');
	
	if ((myPhysiciansStyle == 'none') || (myPhysiciansStyle == 'block') || (myPhysiciansStyle == 'table-row')) {
		document.getElementById('physicians').style.display = myPhysiciansStyle;
	}
}

function saveCookie(name,value,days) {
	if (days) {
		var date = new Date();
		date.setTime(date.getTime()+(days*24*60*60*1000))
		var expires = "; expires="+date.toGMTString()
	}
	else expires = ""
	document.cookie = name+"="+value+expires+"; path=/"
}
function readCookie(name) {
	var nameEQ = name + "="
	var ca = document.cookie.split(';')
	for(var i=0;i<ca.length;i++) {
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length)
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length)
	}
	return null
}
function deleteCookie(name) {
	saveCookie(name,"",-1)
}

function onclickCriteria(strURL) {
	NewWindow = window.open(strURL,'AbsentWindow','scrollbars=no,width=475,height=475,top=60,left=20,status=no,toolbar=no,menubar=no,location=no,resizable=yes');
}