function winopen(url) {
	openwin = window.open(url, "openwin", "toolbar=1,scrollbars=1,location=0,status=1,menubar=1,resizable=1,width=500,height=300");
	openwin.focus();
}

function clearText(thefield){
	if (thefield.defaultValue==thefield.value)
	thefield.value = ""
}

function checklogin(photo_id, secure_test, url) {
	(secure_test == "false") ? window.alert("You must be logged in to download this item.") :	window.open(url);
}

function myprint() {
	if (window.print) window.print();
}

function launchSearch() {
	val = document.getElementById("organization").value;
	
	var strLink = "search_MOIDs.cfm?moname=" + val;
	var strOptions = "menubar=0,resizable=0,width=500,height=500,scrollbars";
	var winName = "wdoSearchMOIDs";
	window.open(strLink,winName,strOptions);
}

function openMedia(url) {
	var w = 800;
	var h = 600;		
	var strOptions = "toolbar=1,scrollbars=1,location=0,status=0,menubar=0,resizable=1,width=" + w + ",height=" + h;
	window.open(url, 'Gallery', strOptions);
}

function equalHeight(group,changeVal) {
   tallest = 0;
   group.each(function() {
    	thisHeight = $(this).height();
   		if(thisHeight > tallest) {
   		        tallest = thisHeight + changeVal;
       		 }
  		});
  		  group.height(tallest);
		}
		
		$(window).load(function() {
   		 equalHeight($(".columnTallest"),0);
});