sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

function openUIWindow()
{
window.open("http://www.golfcircuit.com/chat/chat.htm","new_win","top=15px,left=15px,width=484px,height=361px,toolbar=no,menubar=no,location=no,status=no,directories=no,scrollbars=no")
}


if (window != top) top.location.href = location.href;

function roll_over(img_name, img_src, id, newtext)
	{
		document[img_name].src = img_src;
		document.getElementById(id).innerHTML=newtext
	}
	
function checkFields() {
missinginfo = "";

if(document.form.price.value == "") {
missinginfo += "\n     -  Price";
}

if(document.form.quantity.value == "") {
missinginfo += "\n     -  Quantity";
}

if(isNaN(document.form.quantity.value)) {
missinginfo += "\n     -  Quantity must be a number";
}

if(document.form.quantity.value == "0") {
missinginfo += "\n     -  Quantity Can't be 0";
}


if (missinginfo != "") {
missinginfo ="_____________________________\n" +
"You failed to correctly fill in:\n" +
missinginfo + "\n_____________________________" +
"\nPlease complete the form\nand submit again!";
alert(missinginfo);
return false;
}
else return true;
}	
