function showLargeWork (filetype, filename, pixelwidth, pixelheight)
{
	var largeimagecode = "";
	if(pixelwidth != null || pixelwidth != "" || pixelwidth != "undefined")
	{
		pixelwidth = " width=\""+pixelwidth+"\"";
	}
	
	if(pixelheight != null || pixelheight != "" || pixelheight != "undefined")
	{
		pixelheight = " height=\""+pixelheight+"\"";
	}
	
	if(filetype == "image")
	{
		largeimagecode = "<img src=\"images/"+filename+"\" border=\"0\""+pixelwidth+pixelheight+">";
	}
	
	if(filetype == "flash")
	{
		largeimagecode = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\""+pixelwidth+pixelheight+"><param name=\"menu\" value=\"false\" /><param name=\"movie\" value=\"images/"+filename+"\" /><param name=\"quality\" value=\"best\" /><param name=\"play\" value=\"true\" /><embed pluginspage=\"http://www.macromedia.com/go/getflashplayer\" src=\"images/"+filename+"\" type=\"application/x-shockwave-flash\" quality=\"best\" play=\"true\" menu=\"false\""+pixelwidth+pixelheight+"></embed></object>";
	}
	
	if(filetype == "movmovie")
	{
		largeimagecode = "<object classid=\"clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B\" codebase=\"http://www.apple.com/qtactivex/qtplugin.cab\""+pixelwidth+pixelheight+"><param name=\"enablejavascript\" value=\"true\" /><param name=\"src\" value=\"images/"+filename+"\" /><param name=\"autoplay\" value=\"true\" /><param name=\"controller\" value=\"true\" /><embed height=\"116\" pluginspage=\"http://www.apple.com/quicktime/download/\" src=\"images/"+filename+"\" type=\"video/quicktime\" width=\"100\" controller=\"true\" autoplay=\"true\" enablejavascript=\"true\""+pixelwidth+pixelheight+"></embed></object>";
	}
	
	document.getElementById('largeimagearea').innerHTML = largeimagecode;
}

function checkEmail(myForm)
{
	if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(myForm.email.value))
	{
	return (true);
	}
	alert("Invalid E-mail Address! Please re-enter")
	return (false);
}

function doCaseStudyInfo(thePage)
{
	document.getElementById('casestudyback').style.display = "";
	document.getElementById('homeinfo').src = thePage;
	document.getElementById('servicestitle').src = "images/title-casestudyinfo.gif";
}

function doCloseCasestudy()
{
	document.getElementById('casestudyback').style.display = "none";
	document.getElementById('homeinfo').src = "homeinfo.html";
	document.getElementById('servicestitle').src = "images/title-services.gif";
}