<!--




document.write('<LINK REL=stylesheet HREF="/styles2-new.css">');

function goto_URL(object) {
window.location.href =  object.options[object.selectedIndex].value;
}


function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}



function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&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<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}



function openDetailsWin(theURL) { //v2.0
window.open(theURL,"DetailWin","scrollbars=yes,menubar=yes,width=475,height=375,screenX=0,screenY=0,left=0,top=0");
}

function openAnnoucneWin(theURL) { //v2.0
window.open(theURL,"AnnounceWin","scrollbars=yes,menubar=yes,width=500,height=275,screenX=0,screenY=0,left=0,top=0");
}

function openVideoWin(theURL) { //v2.0
window.open(theURL,"videoWin","scrollbars=no,width=270,height=260,screenX=0,screenY=0,left=0,top=0");
}

function openVideoWinLarge(theURL) { //v2.0
window.open(theURL,"videoWinLarge","scrollbars=no,width=350,height=320,screenX=0,screenY=0,left=0,top=0");
}

function openVideoWinExtraLarge(theURL) { //v2.0
window.open(theURL,"videoWinXLarge","scrollbars=no,width=670,height=420,screenX=0,screenY=0,left=0,top=0");
}

function preloadCommonImages() {


MM_preloadImages('/images/bn_about_new_active.gif','/images/bn_life_new_active.gif','/images/bn_calendar_new_active.gif','/images/bn_support_new_active.gif','/images/bn_resources_new_active.gif','/images/bn_home_new_o.gif','/images/bn_contact_new_o.gif');
MM_preloadImages('/images/icon_calendar_o.gif','/images/icon_listing_o.gif');
MM_preloadImages('/images/home_events_o.gif');
}


function customScripts() {


MM_preloadImages('/images/bn_about_o.gif','/images/bn_life_o.gif','/images/bn_calendar_o.gif','/images/bn_support_o.gif','/images/bn_israel_o.gif','/images/bn_home_o.gif','/images/bn_contact_o.gif');
MM_preloadImages('images/home_tree1_o.gif','images/home_tree2_o_a.gif','images/home_tree2_o_b.gif','images/home_tree3_o_a.gif','images/home_tree3_o_b.gif','images/home_tree4_o_a.gif','images/home_tree4_o_b.gif','images/home_tree5_o_a.gif','images/home_tree5_o_b.gif');
MM_preloadImages('/images/icon_calendar_o.gif','/images/icon_listing_o.gif');
MM_preloadImages('/images/home_news_o.gif','/images/home_events_o.gif');
}

function eventArchives()
{
    var error_string = "";
	var month, year, taskdate;
	
		// check for month accuracy
	month = window.document.archiveForm.archiveMonth.options[document.archiveForm.archiveMonth.selectedIndex].value;
    if (month == "")
    {
        error_string += "You must select a month.\n";
		error_string = error_string;
        alert(error_string);
		return false;
    }


		// check for year accuracy
	year = window.document.archiveForm.archiveYear.options[document.archiveForm.archiveYear.selectedIndex].value;
    if (year == "")
    {
        error_string += "You must select a year.\n";
		error_string = error_string;
        alert(error_string);
		return false;
    }

    if (error_string == "")
    {
		taskdate = month + "/1/" + year;
		archiveWin = window.open("archive-results.asp?taskDate=" + taskdate +  "","archiveWin","scrollbars=yes,width=600,height=420,left=0,top=0,screenX=0,screenY=0");
	   return true;
	   
    } 
}






function openNewsWin(theURL) { //v2.0
newsWin = window.open(theURL,"newsWin","scrollbars=yes,resizable=yes,width=600,height=420,screenX=0,screenY=0,left=0,top=0");
newsWin.focus();
}

writeResource = "";
if (window.location.href.indexOf('-israel') != -1) {
writeResource = "<a href='res-israel.html'>Pro-Israel Resources from Various Political Perspectives</a>";
}
else if (window.location.href.indexOf('-tufts') != -1) {
writeResource = "<a href='res-tufts.html'>List of Tufts Community Resources</a>";
}
else if (window.location.href.indexOf('-social') != -1) {
writeResource = "<a href='res-social.html'>List of Social Life Resources</a>";
}
else if (window.location.href.indexOf('-culture') != -1) {
writeResource = "<a href='res-culture.html'>List of Culture & Arts Resources</a>";
}
else if (window.location.href.indexOf('-holidays') != -1) {
writeResource = "<a href='res-holidays.html'>List of Shabbat & Holidays Resources</a>";
}
else if (window.location.href.indexOf('-learning') != -1) {
writeResource = "<a href='res-learning.html'>List of Jewish Life & Learning Resources</a>";
}
else if (window.location.href.indexOf('-justice') != -1) {
writeResource = "<a href='res-justice.html'>List of Social Justice Resources</a>";
}

resources ="";
if (window.location.href.indexOf('-involved') == -1) {
resources = "<p class='subheadblue'>Resources</p><ul><li>" + writeResource + "</li></ul>";
}




function checkForm()
{
    var error_string = "";
    // check the first name field
    if (window.document.form1.name.value == "")
    {
        error_string += "You must enter your name.\n";
    }

 // check the company field
    if (window.document.form1.studentID.value == "")
    {
        error_string += "You must enter your student ID. If you don't have one, please type N/A \n";
    }

// check the phone field
    if (window.document.form1.address.value == "")
    {
        error_string += "You must enter your local address.\n";
    }

// check the email field
    if (window.document.form1.phone.value == "")
    {
        error_string += "You must enter a phone number.\n";
    }

// check the product number field
    if (window.document.form1.email.value == "")
    {
        error_string += "You must enter an email address.\n";
    }

    if (error_string == "")
    {
	   return true;
	   
    } else {
        error_string = error_string;
        alert(error_string);
        return false;
    } 
}


function checkFormNew()
{
	if (window.document.form1.emailtwo.value != "") {
	return false;	
	}
	
    var error_string = "";
    // check the first name field
    if (window.document.form1.name.value == "")
    {
        error_string += "You must enter your name.\n";
    }

 // check the company field
    if (window.document.form1.studentID.value == "")
    {
        error_string += "You must enter your student ID. If you don't have one, please type N/A \n";
    }

// check the phone field
    if (window.document.form1.address.value == "")
    {
        error_string += "You must enter your local address.\n";
    }

// check the email field
    if (window.document.form1.phone.value == "")
    {
        error_string += "You must enter a phone number.\n";
    }

// check the product number field
    if (window.document.form1.email.value == "")
    {
        error_string += "You must enter an email address.\n";
    }

    if (error_string == "")
    {
	   return true;
	   
    } else {
        error_string = error_string;
        alert(error_string);
        return false;
    } 
}

function checkFormFund()
{
    var error_string = "";
    // check the first name field
    if (window.document.form1.name.value == "")
    {
        error_string += "You must enter your name.\n";
    }

// check the address field
    if (window.document.form1.address1.value == "")
    {
        error_string += "You must enter your address.\n";
    }

// check the city field
    if (window.document.form1.city.value == "")
    {
        error_string += "You must enter your city.\n";
    }
	
// check the state field
    if (window.document.form1.state.value == "")
    {
        error_string += "You must enter your state.\n";
    }
// check the zip field
    if (window.document.form1.zip.value == "")
    {
        error_string += "You must enter your zip or postal code.\n";
    }
	

// check the phone field
    if (window.document.form1.phone.value == "")
    {
        error_string += "You must enter your phone number.\n";
    }

// check the email field
    if (window.document.form1.email.value == "")
    {
        error_string += "You must enter an email address.\n";
    }


    if (error_string == "")
    {
	   return true;
	   
    } else {
        error_string = error_string;
        alert(error_string);
        return false;
    } 
}




function performSearch() {
searchTerm = document.searchForm.zoom_query.value;
searchTermQuery = "/search/search.asp?zoom_query=" + searchTerm + "&zoom_per_page=10&zoom_and=1&zoom_sort=0";

window.location.href = searchTermQuery;
}

function checkEvent(e) {
var unicode=e.keyCode? e.keyCode : e.charCode;
//alert(unicode);
if (unicode == 13) {

searchTerm = document.searchForm.zoom_query.value;
searchTermQuery = "/search/search.asp?zoom_query=" + searchTerm + "&zoom_per_page=10&zoom_and=1&zoom_sort=0";

window.location.href = searchTermQuery;

}

}

function writeSocialIcons() {
document.write('<img src="/images/icons-social.gif" width="521" height="38" border="0" usemap="#mapSocialMedia"><br>');

}

function writeSocialIconsMap() {
document.write('<map name="mapSocialMedia">');
document.write('<area shape="rect" coords="379,1,401,26" href="http://www.facebook.com/tuftshillel" target="_blank" alt="Follow us on Facebook" />');
document.write('<area shape="rect" coords="401,1,425,26" href="http://twitter.com/tuftshillel" target="_blank" alt="Follow us on Twitter" />');
document.write('<area shape="rect" coords="426,2,448,25" href="http://www.flickr.com/photos/tuftshillel" target="_blank" alt="Follow us on Flickr" />');
document.write('<area shape="rect" coords="449,2,473,25" href="http://thetuftshillel.podbean.com/" target="_blank" alt="Listen to our podcasts on Podbean" />');
document.write('<area shape="rect" coords="473,1,496,25" href="http://tufts-hillel.blogspot.com/" alt="Check out our blogging sites" />');
document.write('</map>');


}

function createFooter() {
	// getting this year
	var thisYear = new Date;
	
	var footerHtml = '';
	
	footerHtml += '<div id="footerText">Copyright &copy; ' + thisYear.getFullYear() + ' Tufts Hillel Foundation. All rights reserved.</div>';
			
document.getElementById('footerText').innerHTML = footerHtml;
}

function writeSubnavAboutUs()  {
	
document.write('<ul id="subnavList">');
document.write('<li><a href="au-mission.html" class="subnavLink">Our Mission</a></li>');
document.write('<li><a href="au-staff.html" class="subnavLink">Meet the Staff</a></li>');
document.write('<li><a href="au-directors.html" class="subnavLink">Board of Directors</a></li>');
document.write('<li><a href="au-student-board.html" class="subnavLink">Student Exec. Board</a></li>');
document.write('<li><a href="au-alumni-info.html" class="subnavLink">Alumni Info</a></li>');
document.write('<li><a href="au-employment.html" class="subnavLink">Employment</a></li>');
document.write('<li><a href="au-visit-hours.html" class="subnavLink">Visit Hillel</a></li>');
document.write('<li><a href="au-media.html" class="subnavLink">Media</a></li>');
document.write('<li><a href="au-faqs.html" class="subnavLink">FAQs</a></li>');
document.write('</ul>');	
	
}

function writeSubnavJewishLife()  {
	
document.write('<ul id="subnavList">');
document.write('<li><a href="jl-rabbis-corner.html" class="subnavLink">Rabbi\'\s Corner</a></li>');
document.write('<li><a href="jl-student-groups.asp" class="subnavLink">Student Committees</a></li>');
document.write('<li><a href="jl-religious-life.html" class="subnavLink">Religious Life</a></li>');
document.write('<li><a href="jl-cult-soc-freshmen.html" class="subnavLink">Cultural/Social Life</a></li>');
document.write('<li><a href="jl-graduate-students.asp" class="subnavLink">Graduate Students</a></li>');
document.write('<li><a href="jl-alumni.asp" class="subnavLink">Alumni</a></li>');
document.write('<li><a href="jl-learning-education.html" class="subnavLink">Learning/Education</a></li>');
document.write('<li><a href="jl-outreach.html" class="subnavLink">Outreach</a></li>');
document.write('<li><a href="jl-social-justice.asp" class="subnavLink">Social Justice</a></li>');
document.write('<li><a href="jl-special-projects.asp" class="subnavLink">Special Projects</a></li>');
document.write('<li><a href="jl-kosher-dining.html" class="subnavLink">Kosher Dining</a></li>');
document.write('<li><a href="jl-picture-gallery.html" class="subnavLink">Picture Gallery</a></li>');
document.write('<li><a href="jl-mailing-list.html" class="subnavLink">Mailing List</a></li>');
document.write('</ul>');	
	
}


function writeSubnavCalendar()  {
	
document.write('<ul id="subnavList">');
document.write('<li><a href="cal-monthly-view.asp" class="subnavLink">Events by Month</a></li>');
document.write('<li><a href="cal-semester-view.asp" class="subnavLink">Events by Semester</a></li>');
document.write('<li><a href="cal-yearly-view.asp" class="subnavLink">Events by Year</a></li>');
document.write('<li><a href="cal-topics.asp" class="subnavLink">Events by Topic</a></li>');
document.write('<li><a href="cal-archives.asp" class="subnavLink">Event Archives</a></li>');
document.write('</ul>');	
	
}

function writeSubnavResources()  {
	
document.write('<ul id="subnavList">');
document.write('<li><a href="res-israel.html" class="subnavLink">Israel</a></li>');
document.write('<li><a href="res-community.html" class="subnavLink">Boston Jewish Com.</a></li>');
document.write('<li><a href="res-tufts.html" class="subnavLink">Tufts Community</a></li>');
document.write('<li><a href="res-social.html" class="subnavLink">Social Life</a></li>');
document.write('<li><a href="res-culture.html" class="subnavLink">Culture &amp; Arts</a></li>');
document.write('<li><a href="res-learning.html" class="subnavLink">Jewish Life/Learning</a></li>');
document.write('<li><a href="res-holidays.html" class="subnavLink">Shabbat &amp; Holidays</a></li>');
document.write('<li><a href="res-justice.html" class="subnavLink">Social Justice</a></li>');
document.write('<li><a href="res-hillel-sites.html" class="subnavLink">Other Hillel Sites</a></li>');
document.write('</ul>');	
	
}

function writeSubnavTopics()  {
	
document.write('<img src="images/quicklink-new.gif" width="165" height="259">');
	
}

function writeSubnavSupportUs()  {
	
document.write('&nbsp;');
	
}

function writeSubnavContactUs()  {
	
document.write('&nbsp;');
	
}

function writeSubnavError()  {
	
document.write('&nbsp;');
	
}

function writeSubnavLecture()  {
	
document.write('&nbsp;');
	
}

function writeSubnavSearch()  {
	
document.write('&nbsp;');
	
}

function writeTopicSearch() {
	
document.write('<table border="0" cellspacing="0" cellpadding="0" width="267" height="34">');
document.write('<tr>');
document.write('<form name="theForm" method="post" action="">');
document.write('<td align="right"><img src="/images/spacer.gif" width="20" height="26"></td>');
document.write('<td rowspan="2" valign="top" align="right" width="14" height="34"><img src="/images/keyword_left_new.gif" width="14" height="34"></td>');
document.write('<td width="165" align="center" valign="middle" bgcolor="#864833"><div id="mydiv">');
document.write('<select name="keyword" onChange="MM_jumpMenu(\'\parent\'\,this,0)" class="quicklinkbox">');
document.write('<option selected>--Search by Topic--</option>');
document.write('<option value="/top-happening.asp?ID=8">What\'\s Happening Now</option>');
document.write('<option value="/top-involved.asp?ID=1">How Do I Get Involved</option>');
document.write('<option value="/top-israel.asp?ID=9">Israel</option>');
document.write('<option value="/top-tufts.asp?ID=2">Hillel & the Tufts Community</option>');
document.write('<option value="/top-social.asp?ID=4">Social Life</option>');
document.write('<option value="/top-culture.asp?ID=3">Culture & Arts</option>');
document.write('<option value="/top-holidays.asp?ID=5">Shabbat & Holidays</option>');
document.write('<option value="/top-learning.asp?ID=6">Jewish Life & Learning</option>');
document.write('<option value="/top-justice.asp?ID=7">Social Justice/Tzedek Hillel</option>');
document.write('</select>');
document.write('<td rowspan="2" valign="top" align="left" width="78" height="34"><img src="/images/keyword_right_new.gif" width="78" height="34"></td>');
document.write('</form>');
document.write('</tr>');
document.write('<tr>');
document.write('<td valign="top" align="right"><img src="/images/spacer.gif" width="20" height="8"></td>');
document.write('<td valign="top" align="right" width="155" height="8" background="/images/tile-topic-shadow.gif"><img src="/images/keyword_bm_new.gif" width="142" height="8"></td>');
document.write('</tr>');
document.write('</table>');	
	
}

function writeTopNav() {
document.write('<form method="post" action="" name="searchForm"  onSubmit="return false;">');
document.write('<td id="topLogo" valign="bottom" bgcolor="#034673" height="25">');
document.write('<a name="top"><img src="/images/row1_start_rev.gif" width="200" height="19" border="0"></a></td>');
document.write('<td id="topNav" align="right" bgcolor="#034673"><a href="/index.asp" onMouseOut="MM_swapImgRestore()" onMouseOver=MM_swapImage("home","","/images/bn_home_new_o.gif",1)><img src="/images/bn_home_new.gif" name="home" width="50" height="19" border="0"></a><a href="/contact.html" onMouseOut="MM_swapImgRestore()" onMouseOver=MM_swapImage("contact","","/images/bn_contact_new_o.gif",1)><img src="/images/bn_contact_new.gif" name="contact" width="81" height="19" border="0"></a><img src="/images/bn_sitesearch_new.gif" name="sitesearch" width="79" height="19" border="0"></td><td id="topSearch" bgcolor="#034673">');
document.write('<input type="text" name="zoom_query" style="width:100px; height:16px;" onKeyDown="checkEvent(event)"></td><td id="topSearchButton" bgcolor="#034673">');
document.write('<a href="javascript:performSearch()"><img src="/images/go_arrow.gif" width="17" height="19" border="0"></a><img src="/images/row1_end.gif" width="24" height="19"></td>');
document.write('</form>');
	
}

//-->
