// JavaScript Document
function newwindow(url,name,width,height,resize,scrollbars,left,top,screenX,screenY){ 
	if(typeof(url)!='undefinded'){
		name	=(typeof(name)=='undefined')?'newwindow':name;
		width	=(typeof(width)=='undefined')?800:width;
		height	=(typeof(height)=='undefined')?600:height;
		resize	=(typeof(resize)=='undefined')?'yes':resize;
		left	=(typeof(left)=='undefined')?100:left;
		top		=(typeof(top)=='undefined')?100:top;
		screenX	=(typeof(screenX)=='undefined')?0:screenX;
		screenY	=(typeof(screenY)=='undefined')?0:screenY;
		scrollbars =(typeof(scrollbars)=='undefined')?'yes':scrollbars;
		var winref = window.open(url,name,'width='+width+',height='+height+',resizable='+resize+',scrollbars='+scrollbars+',left='+left+',top='+top+',screenX='+screenX+',screenY='+screenY); 
		winref.focus();
	}
	else{
		alert('No link address was found, please contact the website admin with this page location and the name of the link.  Thank you!');
	}
	return false; //default for avoiding link activation
}

function imgSwap(source, img){
	document.getElementById(source).src = img;
	return false;
}// end imgSwap()

function displayToggle(IDName, numElm, IDon){
	
	for(var i=0; i< numElm; i++){
		document.getElementById(IDName+i).style.display = 'none';
		//alert((IDName+i)+" display:none");
	}
	document.getElementById(IDName+IDon).style.display = 'block';
	return false;
}// end displayToggle()