// HREF FUNCTION function hrefFormat(loc){ var base = document.getElementsByTagName('base'); if (base && base[0] && base[0].href) { loc = base[0].href + loc; } return loc; } // LINK FUNCTION function gohref(loc){ loc = hrefFormat(loc); location.href = loc; } function sessionAppend() { var session_string = ""; return session_string; } // SITE SEARCH function SearchSubmit(x) { if (document.searchForm.search_term.value == "" && document.searchForm.search_near.value == "") { alert("Please enter a search term."); } else { gohref('index.php?level2=' + x + '&search_term=' + document.searchForm.search_term.value + '&search_near=' + document.searchForm.search_near.value + sessionAppend()); } } function PrintFrame(){ var DivCont = document.getElementById("content").innerHTML; window.frames.myiFrame.document.getElementById("printcontent").innerHTML= DivCont; document.getElementById("myiFrame").contentWindow.focus(); document.getElementById("myiFrame").contentWindow.print(); } function RemoveThis(x,y,z){ if(confirm('Are you sure you would like to remove this ' + x + '?')){ gohref(y); } } function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i