<!--
// A collection of routines for AuXAfrica
var _Brand_Monier = 1;
var _Brand_Wunderlich = 2;
var FormMainMenu = document.FormMainMenu;

// Routine to execute the form
function onMainMenuSelectBrand(TheBrandId, TheAction)
	{
	FormMainMenu.FormAction.value = TheAction;
	FormMainMenu.FormFieldBrandId.value = TheBrandId;
	FormMainMenu.submit();
	}

// Routine to print the window
function onPrintPage()
	{
	window.print();
	}

// Routine to email the page to a friend
var WindowEmailPage;
function onEmailPage(TheKeyField)
	{
	var ThePopupLocation = "" + document.location;
	var TheWindowParams = "toolbar=no,location=no,menubar=no,scrollbars=yes,status=no,statusbar=no,resizable=yes,title=no,titlebar=no,width=550,height=350";
	if (TheKeyField && (ThePopupLocation.indexOf("?") == -1))
		ThePopupLocation += "\%" + TheKeyField.name + "=" + TheKeyField.value;
	ThePopupLocation = "/Global/EmailPage/EmailPage.aspx?Location=" + ThePopupLocation;
	if (WindowEmailPage && !WindowEmailPage.closed)
		WindowEmailPage.location = ThePopupLocation;
	else
		WindowEmailPage = window.open(ThePopupLocation,"WindowEmailPage",TheWindowParams);
//alert("WindowEmailPage.document.all.TheTitle=" + WindowEmailPage.document.all.TheTitle);
//alert("WindowEmailPage.document.all.TheTitle.innerHTML =" + WindowEmailPage.document.all.TheTitle.innerHTML);
//		WindowEmailPage.document.all.TheTitle.innerHTML = "Error";
//		WindowEmailPage.document.all.TheContent.innerHTML = TheErrorMessage;
	WindowEmailPage.focus();
	}

function FP_getObjectByID(id,o)
	{//v1.0
	var c,el,els,f,m,n;
	if (!o)
		o=document;
	if (o.getElementById)
		el=o.getElementById(id);
	else if(o.layers)
		c=o.layers;
	else if(o.all)
		el=o.all[id];
	if(el)
		return el;
	if (o.id==id || o.name==id) return o; if(o.childNodes) c=o.childNodes; if(c)
 for(n=0; n<c.length; n++) { el=FP_getObjectByID(id,c[n]); if(el) return el; }
 f=o.forms; if(f) for(n=0; n<f.length; n++) { els=f[n].elements;
 for(m=0; m<els.length; m++){ el=FP_getObjectByID(id,els[n]); if(el) return el; } }
 return null;
}

// Routine to swap image in on mouse rollover
function onMouseOver(TheItemId)
	{
	var TheObject;
	TheObject = FP_getObjectByID(TheItemId);
	TheObject.imgRolln = TheObject.src;
	TheObject.src = TheObject.lowsrc;
	}

// Routine to swap image out on mouse rollout
function onMouseOut(TheItemId)
	{
	var TheObject;
	TheObject = FP_getObjectByID(TheItemId);
	TheObject.src = TheObject.imgRolln;
	}

//-->