/*  NPD JavaScript - Cameron Booth  */
/*  Exported to separate file 2009 11 23 - Eli McIlveen  */


function changeImages(name,source) {
	if (document.images) {
		document.images[name].src = source;
		}
	}

function glossary(word) {
	win = window.open("<?=$SITEBASE?>learn-more/glossary-popup.php#" + word, "win", "width=500,height=200,status=0,location=0,scrollbars=1,resizable=1");
	win.focus();
	win = null;
}

function printList() {
	win = window.open("<?=$SITEBASE?>search/printable-list.php", "win", "width=670,height=400,status=1,location=1,scrollbars=1,resizable=1,toolbar=1");
	win.focus();
	win = null;
}

function printPersonalList(id) {
	win = window.open("<?=$SITEBASE?>lists/user_plant_list_print.php?user_list_ID=" + id, "win", "width=670,height=400,status=1,location=1,scrollbars=1,resizable=1,toolbar=1");
	win.focus();
	win = null;
}

function printRecommendedList(lang, id) {
	win = window.open("<?=$SITEBASE?>lists/recommended_plant_list_print.php?lang=" + lang + "&list_ID=" + id, "win", "width=670,height=400,status=1,location=1,scrollbars=1,resizable=1,toolbar=1");
	win.focus();
	win = null;
}

