<!--

//var BaseURL="file:///C:/Documents%20and%20Settings/Loai%20Naamani/Desktop/LCM/";

//For resizing and recentering page...
//top.window.moveTo(0,0);
//if (document.all) {
//top.window.resizeTo(screen.availWidth,screen.availHeight);
//}
//else if (document.layers||document.getElementById) {
//if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
//top.window.outerHeight = screen.availHeight;
//top.window.outerWidth = screen.availWidth;
//}
//}

function drpLinks_onchange()
{
var selectedURL =  document.getElementById("drpLinks").options[document.getElementById("drpLinks").selectedIndex].value;
	top.document.location = selectedURL;
}

function write_drpLinks()
{
//document.write("<b>Goto: </b><select size=\"1\" onchange=\"drpLinks_onchange()\" id=\"drpLinks\" name=\"drpLinks\" style=\"font-family: Verdana; font-size: 7pt; color: #008000\"><option value=\"" + ChildLevel + "index.html\">home</option><option selected value=\"" + ChildLevel + "club/about.html\">about</option><option value=\"" + ChildLevel + "events/calendar.html\">events</option><option value=\"" + ChildLevel + "lebanon/about.html\">lebanon</option><option value=\"" + ChildLevel + "interactive/contact_us.html\">contact</option><option value=\"" + ChildLevel + "sitemap.html\">sitemap</option></select>");
document.write("<b>Goto: </b><select size=\"1\" onchange=\"drpLinks_onchange()\" id=\"drpLinks\" name=\"drpLinks\" style=\"font-family: Verdana; font-size: 7pt; color: #008000\"><option value=\"" + ChildLevel + "index.html\">home</option><option selected value=\"" + ChildLevel + "club/about.html\">about</option><option value=\"" + ChildLevel + "events/calendar.html\">events</option><option value=\"" + ChildLevel + "underconstruction.html\">lebanon</option><option value=\"" + ChildLevel + "interactive/contact_us.html\">contact</option><option value=\"" + ChildLevel + "underconstruction.html\">sitemap</option></select>");
}

function write_LastUpdated()
{
document.write("<font color=\"#999999\"><span style=\"font-size: 7pt\">Last Updated: 09/01/2007 01:24 AM</span></font>");
}

function write_FooterLinks()
{
//document.write("<a href=\"" + ChildLevel + "index.html\">home</a><font color=\"#CC3300\"><b> | </b></font><a href=\"" + ChildLevel + "club/about.html\">about</a><font color=\"#CC3300\"><b> | </b></font><a href=\"" + ChildLevel + "events/calendar.html\">events</a><font color=\"#CC3300\"><b> | </b></font><a href=\"" + ChildLevel + "lebanon/about.html\">lebanon</a><font color=\"#CC3300\"><b> | </b></font><a href=\"" + ChildLevel + "interactive/contact_us.html\">contact</a><font color=\"#CC3300\"><b> | </b></font><a href=\"" + ChildLevel + "sitemap.html\">sitemap</a>");
document.write("<a href=\"" + ChildLevel + "index.html\">home</a><font color=\"#CC3300\"><b> | </b></font><a href=\"" + ChildLevel + "club/about.html\">about</a><font color=\"#CC3300\"><b> | </b></font><a href=\"" + ChildLevel + "events/calendar.html\">events</a><font color=\"#CC3300\"><b> | </b></font><a href=\"" + ChildLevel + "underconstruction.html\">lebanon</a><font color=\"#CC3300\"><b> | </b></font><a href=\"" + ChildLevel + "interactive/contact_us.html\">contact</a><font color=\"#CC3300\"><b> | </b></font><a href=\"" + ChildLevel + "underconstruction.html\">sitemap</a>");
}

function SendEmail()
{
	var to = document.frmEmail.drpTo.value;
	var subject = escape(document.frmEmail.txtSubject.value + " ");
	var curDateTime = new Date()
	curDateTime = curDateTime.toLocaleString()
	var mailer = 'mailto:' + to + '?subject=' + subject + '&body=' + escape(curDateTime + '\n\n\nDear ' + document.frmEmail.drpTo.options[document.frmEmail.drpTo.selectedIndex].text +  ',\n\n\t' + document.frmEmail.txtMessage.value + '\n\n\n\tSincerely,\n\t' + document.frmEmail.txtName.value)
	
	parent.location = mailer;
}

function ApplyForMembership()
{
	var to = "lebanon-owner@mit.edu";
	var subject = escape(document.frmMembership.txtSubject.value);
	var curDateTime = new Date()
	curDateTime = curDateTime.toLocaleString()
	var mailer = 'mailto:' + to + '?subject=' + subject + '&body=' + escape(curDateTime + '\n\n\nDear LCM Club Officers,\n\nI would like to become a member of the Lebanese Club @ MIT. This is the information you requested:\n\n' 
	
	+ '\tName: ' + document.frmMembership.txtName.value 
	+ '\n\tEmail: ' + document.frmMembership.txtEmail.value
	+ '\n\tStatus: I am ' + document.frmMembership.drpIAm.options[document.frmMembership.drpIAm.selectedIndex].text
	+ '\n\tCourse/Class: ' + document.frmMembership.txtEmail.value
	+ '\n\tComments: ' + document.frmMembership.txtMessage.value
	+ '\n\nSincerely,\n' + document.frmMembership.txtName.value)
	parent.location = mailer;
}

function NewWindow_AChildOfLife()
{
	window.open(ChildLevel + 'events/previous/AChildOfLife/index.html','AChildOfLife','width=778,height=503,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=no,left=' + (window.screen.width/2 - 389) + ',top=' + (window.screen.height/2 - 252) + ',screenX=' + (window.screen.width/2 - 389) + ',screenY=' + (window.screen.height/2 - 252));
}

function showHideContent(id, show)
{
  var elem = document.getElementById(id);
  if (elem) 
  {
    if(show) 
    {
      elem.style.display = 'block';
      elem.style.visibility = 'visible';
    } 
    else
    {
      elem.style.display = 'none';
      elem.style.visibility = 'hidden';
    }
  }
}        

function popup(URL) {
var newwindow = window.open(URL, 'name','toolbar=0,location=0,scrollbar=1;statusbar=0,menubar=0,resizable=0,width=700,height=645,left = 162,top = 24');
}


-->
