<!--
function swapstyle(control, state) {
	if (state == "over") {
		control.style.backgroundColor = "#10653A";
		control.style.color = "white";
	} else {
		control.style.backgroundColor = "#0B4629";
		control.style.color = "white";
	}
}

// Example: obj = findObj("image1");
function findObj(theObj, theDoc)
{
  var p, i, foundObj;
  
  if(!theDoc) theDoc = document;
  if( (p = theObj.indexOf("?")) > 0 && parent.frames.length)
  {
    theDoc = parent.frames[theObj.substring(p+1)].document;
    theObj = theObj.substring(0,p);
  }
  if(!(foundObj = theDoc[theObj]) && theDoc.all) foundObj = theDoc.all[theObj];
  for (i=0; !foundObj && i < theDoc.forms.length; i++) 
    foundObj = theDoc.forms[i][theObj];
  for(i=0; !foundObj && theDoc.layers && i < theDoc.layers.length; i++) 
    foundObj = findObj(theObj,theDoc.layers[i].document);
  if(!foundObj && document.getElementById) foundObj = document.getElementById(theObj);
  
  return foundObj;
}

function makered(ctrl) {
	obj = findObj(ctrl);
	if (obj && obj.style) {
		obj.style.color = "red";
	}
}

function makeblack(ctrl) {
	obj = findObj(ctrl);
	if (obj && obj.style) {
		obj.style.color = "black";
	}
}

function doScriptWin(path) {
	newWin = window.open(path, "openWin","width=520,height=375,dependent,screenx=80,screeny=20,left=80,top=20,scrollbars=no");
	if (newWin.focus()) {
		newWin.focus();
	}
}

function searchcat() {
	var d = document.search;
	var mfg = "";
	var sitem = "";
//	if (d.mfg.selectedIndex > 0) {
//		mfg = "mfg=" + escape(d.mfg.options[d.mfg.selectedIndex].value);
//	}
//	if (d.ModelID.value != "" && d.ModelID.value != "Enter Model Number") {
//		sitem = "modelid=" + escape(d.ModelID.value);
//		if (mfg.length > 0) {sitem = "&" + sitem;}
//	}
//	if (mfg.length > 0 || sitem.length > 0) {
//		window.location = "/grillparts/catalog.asp?" + mfg + sitem;
//	}
	d.submit();
	return false;	
}
//-->

