function shownav(id) {
	if(!document.getElementById){
		return;
	}
	var mynav = document.getElementById(id);
	for (var i = 1; i<=10; i++) {
		if (document.getElementById('mysubmenu'+i)) {
			document.getElementById('mysubmenu'+i).style.display='none';
		}
	}
	if (mynav){
		mynav.style.display='block';
	}
}

function addLoadEvent(func){
	var oldonload = window.onload;
	if(typeof window.onload != 'function'){
		window.onload = func;
	}else{
		window.onload = function(){
			if(oldonload){
				oldonload();
			}
			func();
		}
	}
}

function valorder(){
	if(document.frmBuy.sizeId.value == ""){
		alert("Please select a size for your item");
		document.frmBuy.sizeId.focus();
		return false;
	}else{
		return true;
	}
}

function valContactfrm(){
	if(!document.frmcontact.name.value){
		alert("Please enter a name.");
		document.frmcontact.name.focus();
		return false;
	}else if(!document.frmcontact.email.value){
		alert("Please enter a valid email.");
		document.frmcontact.email.focus();
		return false;
	}else if(!document.frmcontact.message.value){
		alert("Please enter a message.");
		document.frmcontact.message.focus();
		return false;
	}else{
		return true;
	}
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}


