function showMore(id){ var tmpDetails = document.getElementById('details_'+id); if (tmpDetails.style.display == 'none'){ tmpDetails.style.display = 'block' }else{ tmpDetails.style.display = 'none' } } function joinEMailer(){ var tmpJoinMailer = document.getElementById('joinMailer'); var tmpAdd_email = document.getElementById('add_email'); if (tmpJoinMailer.value != ""){ tmpAdd_email.submit(); } } function turnPage(albumid, pageid){ window.location.href="/eophotos&albumid="+albumid+"&pageid="+pageid } var sortDir = 'desc'; var filterFor = ''; var bynum = 0; function filterListForArtist(artistId){ filterFor = artistId; sortDir = 'desc'; resortAlumni(bynum); } function resortAlumni(by){ bynum = by; var bystring = 'date'; switch(by){ case 1: bystring = 'name'; break; case 2: bystring = 'venue'; break; case 3: bystring = 'city'; break; case 4: bystring = 'state'; break; default: bystring = 'date'; } ajaxFunctionResortAlumni("resortAlumni="+bystring+"&sortDir="+sortDir+"&filterFor="+filterFor); if (sortDir == 'asc'){ sortDir = 'desc'; }else{ sortDir = 'asc'; } } function ajaxFunctionResortAlumni(varString) { var xmlHttpResortAlumni; try { // Firefox, Opera 8.0+, Safari xmlHttpResortAlumni=new XMLHttpRequest(); } catch (e) { // Internet Explorer try { xmlHttpResortAlumni=new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { xmlHttpResortAlumni=new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) { alert("There is a problem with this action. Please contact the developer."); return false; } } } xmlHttpResortAlumni.onreadystatechange=function() { if(xmlHttpResortAlumni.readyState==4) { eval (xmlHttpResortAlumni.responseText); document.getElementById('archived_show_div').innerHTML = newAlumniTableString; document.getElementById('sort'+bystring+'Dir').src = '/images/arrow'+sortstring+'.gif'; } } xmlHttpResortAlumni.open("GET","eoData.php?" + varString,true); xmlHttpResortAlumni.send(null); }