function embedFlash(inMovie, inWidth, inHeight)
{
	document.write('<object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="obj1" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" border="0" width="' + inWidth + '" height="' + inHeight + '"><param name="movie" value="' + inMovie + '"><param name="quality" value="High"><param name="wmode" value="transparent"><embed src="' + inMovie + '" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="obj1" width="' + inWidth + '" height="' + inHeight + '" quality="High" wmode="transparent"></object>');
}

function validateContact(f)
{
	if (f.Name.value == '')
	{
		window.alert('Please enter your name to continue.');
		f.Name.focus();
		return false;
	}
	
	if (f.Address.value == '')
	{
		window.alert('Please enter your email address to continue.');
		f.Address.focus();
		return false;
	}
	
	return true;
}

function popWindow (url,w,h)
{
	var pWin = window.open(url,'pWin','width=' + w + ',height=' + h + ',scrollbars,resizable');
	pWin.moveTo(screen.width/2-w/2,screen.height/2-h/2);
	pWin.focus();
}

function showLayer(inLayer)
{
	inLayer.style.visibility = 'visible';
}

function hideLayer(inLayer)
{
	inLayer.style.visibility = 'hidden';
}

function placeLayer(inLayer,x,y)
{
	inLayer.style.left = x;
	inLayer.style.top = y;
}