function swap_image(image, new_src) {
	changeImage(image, new_src);
}

function changeImage(image_name, new_src) {
  if(image_name!=null) {
        image_name.src = new_src;
  }
}
function openPopup(linkObj,height,width) { 
	window.open(linkObj.href,"","height="+height+",width="+width+",status=no,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,titlebar=no,top='0',left='0'");
}
function openNewWindow(linkObj, height, width, window) {
	window.open(linkObj.href,"","height="+height+",width="+width +",top='0',left='0'");
}
function openNewWindow(linkObj){
	window.open(linkObj.href,"","top='0',left='0'");
}

function loadImage(image_name, image_src){
	image_name = new Image();
	image_name.src = image_src ;
}

function showContent(elemName,imgName, imgExpanded, imgCollapsed) {
	if (document.all || document.getElementById) {
		if (elemName.style.display == '') {
			elemName.style.display = 'none';
			imgName.src = imgCollapsed;
		}
		else {
			elemName.style.display = '';
			imgName.src = imgExpanded;
		}
	}
}
function dynamicPopUp(myObj){
	var str = "\"width=10,height=10,left=75,top=60,status=no,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,titlebar=no\"";
	window.open("dynamic-popup.htm?img="+myObj.href, "myPopup", str);	
	return false;	
}
function dynamicPagePopUp(myObj){	
	var str = "\"width=10,height=450,left=75,top=60,status=no,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,titlebar=no\"";
	window.open(myObj.href, "myPopup", str);	
	return false;	
}

