<!-- //This is the Javascript function file

//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
function DoMail()	// Inserts the mailto link without spelling out the address
{
			UName ="info"
			Domn = "scienceontap"
			Suff = "org"
		
			return "mailto:" + UName + "@" + Domn + "." + Suff
	  
}
// Example: <a href="" onclick="this.href=DoMail()">Text</a>
//vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv

//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
function SwapImage(img1) //Swaps current source for img1)
{
 			return img1
}
// Example: <img src="" alt="" onmouseover="this.src=Swapimage([image name])" />
//vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv

//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
function PreLoadImages() //Creates a new array of images
{ 
  var d=document; 
	if(d.images)
     { if(!d.ImageList) d.ImageList=new Array();
       var x,y,args;
			 
			 y=d.ImageList.length;						//Initially length will be 0
			 args=PreLoadImages.arguments;
			  
	     for(x=0; x<args.length; x++)    //Look at each image passed in
	     if (args[x].indexOf("#")!=0)
		      { d.ImageList[y]=new Image; 
					  d.ImageList[y++].src=args[x];
					}
		 }
}
// Example: <body onload="PreLoadImages('Image1','Image2','Image3')"
//vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv

//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
function EOM(y,m) {

// for a given year and month, returns the number of days in the month.

var newDate = new Date() // initialise Date object

	if (m <= 11) {
	  newDate.setDate(1)
	  newDate.setMonth(m) //setMonth is zero based: 0 = January, 1 = Feb. etc.
	  newDate.setYear(y)
	} else {
	  newDate.setDate(1)
	  newDate.setMonth(0)
	  newDate.setYear(y+1)
	}
	
	newDate.setTime(newDate.getTime() - 86400000) //86400000 seconds in a day
	return newDate.getDate()
}
// Example: document.write(EOM(2004,2)" returns "29"
//vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
//-->
