function checkVersion() 
	{
	if (navigator.appVersion.charAt(0)>='3')            
	return true;      
	else return false;     
	}    

function todaydate()
	{
	var d=new Date()
	var month=new Array("Jan.","Feb.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec.")
	document.write( month[d.getMonth()] + " "  + d.getDate()  + ", " + d.getFullYear() )
	}

function updated()
	{
	var updated=new Date(document.lastModified);
	var months=new Array("Jan.","Feb.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec.")
	document.write("This webpage was last updated on ");
	document.write(months[updated.getMonth()] + " ");
	document.write(updated.getDate() + ", " + updated.getFullYear() + ". ")
	}

function checkVersion() 
{       
if (navigator.appVersion.charAt(0)>='3')      
return true;      
else return false;     
}               

if(checkVersion()) 
{                       
now=new Date();
thispict = Math.ceil(((now.getSeconds() +1)*10)/61);
		img1on = new Image(); 
        img1on.src = "/images/2005/about1_dn.gif";     

        img2on = new Image();       
        img2on.src = "/images/2005/alumni1_dn.gif";           

        img3on = new Image();       
        img3on.src = "/images/2005/news1_dn.gif";      

        img4on = new Image();       
        img4on.src = "/images/2005/prospectives1_dn.gif";          

        img5on = new Image();       
        img5on.src = "/images/2005/research1_dn.gif";          

 img6on = new Image();       
img6on.src = "/images/2005/staff1_dn.gif";          

img7on = new Image();       
img7on.src = "/images/2005/student1_dn.gif";          

img8on = new Image();       
img8on.src = "/images/2005/directories1_dn.gif";          

        img1off = new Image();                                              
        img1off.src = "/images/2005/about1_up.gif";      

        img2off = new Image();      
        img2off.src = "/images/2005/alumni1_up.gif";            

        img3off = new Image();            
        img3off.src = "/images/2005/news1_up.gif";       

        img4off = new Image();      
        img4off.src = "/images/2005/prospectives1_up.gif";           

        img5off = new Image();                                              
    	img5off.src="/images/2005/research1_up.gif";      

        img6off = new Image();      
        img6off.src = "/images/2005/staff1_up.gif";            

        img7off = new Image();            
        img7off.src = "/images/2005/student1_up.gif";       

        img8off = new Image();      
        img8off.src = "/images/2005/directories1_up.gif";           
 }

function imgOn(imgName) 
        {       
        if (checkVersion()) 
           {    document[imgName].src = eval(imgName + "on.src");          
           }
        }

function imgOff(imgName) 
        {       
                if (checkVersion()) 
                {           
                        document[imgName].src = eval(imgName + "off.src");                                                           
                }
        }

function nospm(dom, nom){
document.write('<a href="' + 'mailto:' + nom + '&#064;' + dom + '&#111;&#110;&#116;&#111;&#46;&#99;&#97;">' + nom + '&#45;&#97;&#116;&#45;' + dom + '&#111;&#110;&#116;&#111;&#46;&#99;&#97;</a>');
}

function process() {
with (document.Mail) {

var eml = "";
                for (i=0; i<SentTo.length; i++){
                        if (SentTo[i].checked==1){
                                        eml = SentTo[i].value;
                        }
                }
action = "mailto:" + eml + "onto.ca?subject=Query from utoronto.ca - " + Topic.value;
   }
}

function formCheck() {
var passed = false;
with (document.Mail) {
	if (Topic.value == "") {
		alert("Please include a question topic.");
		Topic.focus();
		}
	else if (Question.value == "") {
		alert("Please include a question or comment.");
		Question.focus();
		}
	else {
		process();
		passed = true;
	   }
	}
window.setTimeout("location.href='http://www.utoronto.ca/contactreply.htm'",2000)

return passed;
}
