function WriteFlash (strFile, intWidth, intHeight, strWmode)
{
	if (navigator.userAgent.indexOf("MSIE") != -1) {
		document.write ('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"');
		document.write ('codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"');
		document.write ('width="' + intWidth + '"');
		document.write ('height="' + intHeight + '">');
	} else {
		document.write ('<object data="' + strFile + '"');
		document.write ('width="' + intWidth + '"');
		document.write ('height="' + intHeight + '"');
		document.write ('type="application/x-shockwave-flash">');
	}
	document.write ('<param name="movie" value="' + strFile + '" />');
	document.write ('<param name="quality" value="high" />');
	document.write ('<param name="bgcolor" value="#FFFFFF" />');
	document.write ('<param name="menu" value="false" />');
	document.write ('<param name="wmode" value="' + strWmode + '" />');
	document.write ('<p>&nbsp;</p>');
	document.write ('<p style="text-align: center;">This browser does not have a Flash Plug-in.<br />');
	document.write ('<b><a href="http://www.macromedia.com/go/getflashplayer">Get the latest Flash Plug-in here</a></b></p>');
	document.write ('</object>');
}

function clearField(obj, text)
{
	if (obj.value == text) obj.value = '';
}

function fillField(obj, text)
{
	if (obj.value == '') obj.value = text;
}

function goFocus(obj)
{
	obj.focus();
}

function go(loc)
{
	document.location.href = loc;
}

function goPopupMinimal(loc)
{
	var leftVal = (screen.width / 2) - (700/2);
	var topVal = (screen.height / 2) - (500/2);
	window.open (loc, 'new_window', 'left=' +leftVal+ ',top=' + topVal + ',toolbar=no,width=700,height=500,status=no,resizable=yes,menubar=no,location=no,scrollbars=yes');
}

function goPopup(loc)
{
	window.open (loc, 'new_window', 'toolbar=yes,width=800,height=600,status=yes,resizable=yes,menubar=yes,location=yes,scrollbars=yes');
}

function goDisable(item)
{
	item.disabled = true;
}

function goHide(itemObj)
{
	itemObj.style.display = 'none';
}

function goShow(itemObj)
{
	itemObj.style.display = '';
}
