//-----------------------------------------
//-----------------------------------------
function __doPost (msgId, msgArg, formId)
{
	if (!formId)
	{
		formId	= 'the_form';
	}

	var theform;

	theform = document.getElementById (formId);

	if (theform)
	{
		// MUST have these two inputs on form
		//
		//	<input type="hidden" name="msgId" value="" />
		//	<input type="hidden" name="msgArg" value="" />

		theform.msgId.value	= msgId;

		if (msgArg)
		{
			theform.msgArg.value	= msgArg;
		}

	//	alert (window.navigator.appName + "::__doPost('" + theform.msgId.value + "', '"  + theform.msgArg.value + "', '" + formId + "')");

		theform.submit();
	}
	else
	{
		alert ("theform is NIL");
	}

	return true;
}


//-----------------------------------------
//-----------------------------------------
function __preloadImages()
{
	var	thedoc	= document;

	if (thedoc.images)
	{
		if (!thedoc._preloadimgs)
		{
			thedoc._preloadimgs	= new Array();
		}

		var	argndx;
		var	imgcnt	= thedoc._preloadimgs.length;
		var	theargs	= MM_preloadImages.arguments;

		for (argndx=0; argndx < theargs.length; argndx++)
		{
			if (theargs[argndx].indexOf("#") != 0)
			{
				thedoc._preloadimgs[imgcnt]			= new Image;
				thedoc._preloadimgs[imgcnt++].src	= theargs[argndx];
			}
		}
	}
}
