<!--
function clearDefault_OLD(field) 
	{
	if ((field.value == 'email address') || (field.value == 'enter keyword'))
		{
		field.value = '';
		}
	}

function clearDefault(el) {
  if (el.defaultValue==el.value) el.value = ""
}



function validateEmail()
	{
	sEmail = document.mailinglist.email.value;
	if(sEmail != "")
		//alert (sEmail);
		{
		var filter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})(;([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4}))*$/;
		if (!filter.test(sEmail)) 
			{
			alert ("The Email Address is not a correct format.");
			document.mailinglist.email.focus();
			return false;
			}
		else
			{
			return true;
			}
		
		}
	}



function BackgndAdd(cellID) {
	sImage = "url(/images/CellBackgnd.gif)";
	if (document.getElementById)
		{	
		document.getElementById(cellID).style.backgroundImage = sImage;
 		//var CatLink99 = 'cat' + cellID;
		//alert(CatLink99);
		//document.getElementById(CatLink99).className = 'CategoryListWhite';

		}
	else if (document.all)
		{
		document.all(cellID).style.backgroundImage = sImage;
 		//var CatLink99 = eval('cat' + cellID);
		//alert(CatLink99);
		//document.all('cat' + cellID).className = 'CategoryListWhite';
		}
	else if (document.layers)
		{
		document.layers(cellID).style.backgroundImage = sImage;
		}
}

function BackgndRemove(cellID) {
	if (document.getElementById)
		{
		document.getElementById(cellID).style.backgroundImage = '';
		//document.getElementById('cat' + cellID).className = 'CategoryList';
		}
	else if (document.all)
		{
		document.all(cellID).style.backgroundImage = '';
		}
	else if (document.layers)
		{
		document.layers(cellID).style.backgroundImage = '';
		}
}

function SwapImage(ImageName,ElementID) {
		document.getElementById(ElementID).src = '/images/' + ImageName;
}



function imgPopup(imgpath, title) {
            html = "<html><body style='margin=0; text-align:center'><img src='" + imgpath + "' alt='" + title + "' /></body></html>";
            popup = window.open ('','image','width=800,height=600,toolbar=0,location=0,directories=0,menuBar=0,scrollbars=1,resizable=1');
            popup.location = 'about:blank';
            popup.document.write(html);
        }

        function eulaPopup(assetName) {
            popup = window.open ('eula.aspx?a=' + assetName,'eula','width=800,height=600,toolbar=0,location=0,directories=0,menuBar=0,scrollbars=1,resizable=1');
}

function openAsset(file,holderId) {

            if(file.length<7){return}
            
            var fileExt = file.toLowerCase().substring(file.lastIndexOf(".")+1);

            var so;
            if(fileExt=="mp3"){
                so = new SWFObject("/Resources/audio_player.swf", "player", "324", "24", "7", "#FFFFFF");
            }else if(fileExt=="flv" || fileExt=="mp4"){
                so = new SWFObject("/Resources/video_player.swf", "player", "324", "240", "7", "#000000");
            }else if(fileExt=="swf") {
                so = new SWFObject(file, "SWFdemo", "324", "240", "7", "#000000");
            }

            so.addParam("allowScriptAccess", "sameDomain");
            so.addVariable("path", file);
            so.addVariable("auto", "false");
            so.write(holderId);
}


function OpenFreightCalc(nProdID) { 
	sURL = "FreightCalc.asp?ProdID=" + nProdID
  	newWindow = window.open(sURL,'FreightCalc','width=430,height=200');
}


function checkLength(which) {
if (form1.Instructions.value.length > 200) {
alert("The maximum number of characters for Special Instructions is 200.\r\rYou have entered " + form1.Instructions.value.length + " characters. Please adjust your text length.")
form1.Instructions.focus();
}
}


function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

//-->

