function setFieldIn(inputBox, originalValue) { if (inputBox.value == originalValue) { inputBox.value = ""; }}
function setFieldOut(inputBox, originalValue) { if (inputBox.value == "") { inputBox.value = originalValue; }}
function addOnloadEvent(functionCall) { var currentOnLoad = window.onload; if (currentOnLoad != null) { window.onload = function() { currentOnLoad(); eval(functionCall); } } else { eval(functionCall);}}
function getElementById(id) { var ns6=document.getElementById&&!document.all; myElement = ns6 ? document.getElementById(id) : document.all[id]; return myElement;}
function changeProductThumb(thumbElementID, productID, productName) { var ns6 = document.getElementById && !document.all; var thumbnail = ns6 ? document.getElementById(thumbElementID) : document.all[thumbElementID]; thumbnail.src = "/lm-images/products/" + productID + "_small.jpg"; }
function createAjaxObject() { var httpRequest = false; if (window.XMLHttpRequest) { httpRequest = new XMLHttpRequest(); if (httpRequest.overrideMimeType) { httpRequest.overrideMimeType('text/xml'); }	} else if (window.ActiveXObject) {try {httpRequest = new ActiveXObject("Msxml2.XMLHTTP");} catch (e) {try {httpRequest = new ActiveXObject("Microsoft.XMLHTTP");} catch (e) {/* do nothing */}}}	return httpRequest; }
function getAjaxRequest(url, parameters, callBackFunction, fileType) { ajaxObj = createAjaxObject(); var parameters = parameters + "&cache=" + new Date().getTime();	if (ajaxObj) { ajaxObj.onreadystatechange = callBackFunction; ajaxObj.open('GET', url + "?" + parameters, true); ajaxObj.send(null);}}
