function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function prodPartLink(link) {
	var str=location.href
	var pos=str.indexOf(link)
	if (pos>=0)
	{
		window.location = location.href;
	}else{
		window.location = location.href+link;
	}
}

/*now this goes in the <body>
<div style="display: none;" id="script">
BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH
<p><a href="#" onclick="showhide('script'); return(false);">hide again</a></p>
</div>*/
function showhide(id){
	if (document.getElementById){
		obj = document.getElementById(id);
		if (obj.style.display == "none"){
			obj.style.display = "";
		} else {
			//obj.style.display = "none";
		}
	}
}

function changeImage(filename)
{
	//document.mainimage.src = '/skin1/images/checkout_loading.gif';
    document.mainimage.src = 'imgsize.php?w=300&h=300&constrain=1&img=' + filename;
   //document.getElementById('mainLink').href = filename;
}
