/*******************************************************************************************************************
function getMail(name,dom,linktext,sub,hyper)
Author: Raymond E. Kinzer, Jr. eMail for help.

This little function will help for security of the eMail address that appear on the website. Though not necessarily 
full-proof (or foolproof?), it does offer an obstacle. This is to protect the eMail address from spiders on the web 
do crawl around source codes for webpages and copy down internet address for their huge banks of eMail addresses, for
spamming purposes. You don't have to use this code, but it's one less block in the road against spam. Usually, these
spiders cannot read scripting.

Here's a quick overview of how this works:

Using the function: Let's say we use the function, paste where you want to add it:
						<SCRIPT>getMail("","","","","")</SCRIPT>
	(Assuming the page defaults to JavaScript.) This will send an eMail to the default values.
	Change these as necessary. 

	DON'T DELETE ANY OF THE DOUBLE QUOTES!!!

	Let's assume that we are sending an eMail to the starhopper@tcu.edu .
	In our example, the function would be entered:
				<SCRIPT>getMail("starhopper","tcu","email","Cool site!","")</SCRIPT>	
	The first two parameters are self explanatory. The user will click the eMail address, and 
	the subject line of the eMail will be "Cool site!".

BE SURE THE DEFAULT VALUES AT THE BEGINNING OF THE FUNCTION ARE FILLED!!!

The names of the parameters above are as follows:

name =  the name of the person who is being eMailed
	In our example, the name parameter is assigned a value of "starhopper". If this is left blank "", or 
	"webmaster"	is entered, it goes to the webmaster by default.

dom = domain of the eMail address
	In our example, the domain is "tcu.edu". If This is left blank, or "", the default domain, domDefault, 
	will apply.

linktext = text that user sees when he 'clicks' on it
	You can enter text into the "". If you type "email" or "eMail", the text will be the eMail address of the 
	recipient. Type "emailw" for the text to show the "eMail" plus the eMail address.
	If you do not fill the "", a default text will appear, whatever is assigned to the variable 
	linkTextDefault.
	Note: You must have linkText filled, either when you call the function, or at the linkTextDefault 
	(it is wise to fill the latter).

sub = when the user's eMail appears, this text will appear in the subject line, when applicable
	The line that appears in the subject line when the user's eMail starts. You can enter this in as a parameter
	when you call getMail(), use the subDefault bye leaving the paramter in the function as "", or if you desire 
	no link text type "none" for the sub parameter when you call the function.

hyper = whether the text the user sees is a hyperlink
	This allow the text the user sees to appear as a hyper link that the user clicks on. It defaults to a hyper-
	link, as per the hyperDefault variable, when the value in the function is a blank "" or "true". If you don't 
	want the link to be a hyperlink, type "false" where you call the function.

BE SURE THE DEFAULT VALUES AT THE BEGINNING OF THE FUNCTION ARE FILLED!!!

!!!!DON'T DELETE QUOTATION MARKS FROM WHEN YOU CALL THE FUNCTION!!!!
*******************************************************************************************************************/

function getMail(name,dom,linktext,sub,hyper)
{	


	//set defaults for the following 5 values; don't change names of variables!!!

	webmaster = "r.e.kinzer"			//webmaster account
	domDefault = "tcu.edu"				//default domain
	linkTextDefault = "email"			//default text to select link
	subDefault = "TCU Molecular Physics Lab"	//default subject line
	hyperDefault = "true"				//default "true" to make hyperlink;DO NOT CHANGE!



	//DO NOT TAMPER WITH BELOW CODES!!!

	//set the addressee, if needed
	if((name.length == 0)||(name == "webmaster"))
	{
		name=webmaster
	}


	//set the domain of the addressee; go to domDefault as necessary
	if(dom.length == 0)
	{
		dom = domDefault
	}else
		dom = dom

	//create the eMail address
	link = name + "&#64;" + dom


	//set a default subject line for eMail, this doesn't necessarily apply for all eMail services
	if(sub == "none")
	{
		sub = ""
	}else	
	if(sub.length == 0)
	{
		sub = subDefault
	}else
		sub = sub


	//set default linktext (text that user clicks on)
	if(linktext.length == 0)
	{
		linktext = linkTextDefault
	}
	if((linktext == "email")||(linktext == "eMail"))
	{
		linktext = link
	}
	if(linktext == "emailw")
	{
		linktext = "eMail "+link
	}else
	{
		linktext = linktext
	}

	
	//this will print the information into the webpage!!!
	if((hyper == "true")||(hyper.length == 0))
	{
		//The upper line includes a subject, the lower line deletes it.
		//The lower line works w/ Outlook Express & Mozilla Thuderbird!
//		document.write("<a href='mailto:"+link+"?subject="+sub+"'>"+linktext+"</a>")
		document.write("<a href='mailto:"+link+"'>"+linktext+"</a>")

	}else
	if(hyper == "false")
	{
		document.write(link)
	}
}
//end getMail




/*******************************************************************************************************************
function showPic(img)

This was designed for the Scrapbook, but may be utilized elsewhere as needed. This is designed to open up a picture
in its own window, but not necessarily requiring that the window be a *.html file. It is possible to open 

An example from the Scrapbook page is given here
<a href="javascript:showPic('images/scrapbook/DarronSam.html')">
		<img src="images/scrapbook/thumbnail/DarronSam_s.jpg"></a>
*******************************************************************************************************************/

function showPic(img)
{
	//get size of image, requires declaring the image is an image!
	var pic = new Image();
	pic.src = img
	x=pic.width
	y=pic.height
	
	xWidth=parseInt(x)
	yHeight=parseInt(y)

	//dimensions = "width=" +xWidth+ ",height=" +yHeight
	//document.write(dimensions)

	picWindow = window.open(img, "picWin", "width=650,height=600,resizable=yes")
	picWindow.focus()
	
	//x=0
	//y=0
	//dimensions=""
}//end showPic