function FnEvents()
{
var eve;
eve = document.parts.descriptform.value;
if (eve == 1)
{
alert("Please Select a Part");
document.parts.descriptform.focus();
}
else
//window.open(eve);
document.location.href=eve;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function RTrim(VALUE){
var w_space = String.fromCharCode(32);
var v_length = VALUE.length;
var strTemp = "";
if(v_length < 0){
return"";
}
var iTemp = v_length -1;

while(iTemp > -1){
if(VALUE.charAt(iTemp) == w_space){
}
else{
strTemp = VALUE.substring(0,iTemp +1);
break;
}
iTemp = iTemp-1;

} //End While
return strTemp;

} //End Function

function check()
{
	document.form.submit();
	return true();
}

function URLMove()
    {
        var murlYear=document.getElementById("year").value;
        var murlMake=document.getElementById("make").value;
        murlMake=murlMake.replace(/\s/g,"");
        document.epc.method="post";
        document.epc.action="http://www.turbochargerpros.com/selectmodel/"+murlYear+"_"+murlMake+".html";
        document.epc.submit=true;        
    }
