'; HideSpinner();
});
}
}
function MakeSelector_onChange(value)
{
$('.selectMe').attr('class','');
if(value != '-')
{
document.getElementById('MMY_spinner').style.display = "block";
make = escape(value);
sendAJAXRequest("ajaxCompunixMMYRequest.aspx?RequestedPage="+requestedPage+"&Make="+make+"&Model=&Year="+year+"&ID=ModelSelector&ProductID=" + productid, '', function(response) {
document.getElementById('MMY_ModelSelect').innerHTML = '
'+response.replace('Select Model','Model')+'
'; HideSpinner();
});
}
}
function ModelSelector_onChange(value)
{
$('.selectMe').attr('class','');
if(value != '-')
{
document.getElementById('MMY_spinner').style.display = "block";
model = escape(value);
sendAJAXRequest((window.top.location.href.indexOf("APSC") > -1 ? "phoneOrderMMYRequest.aspx" : "ajaxCompunixMMYRequest.aspx") + "?RequestedPage="+requestedPage+"&Make="+make+"&Model="+model+"&Year="+year+"&ProductID=" + productid, '', function(response) {
//
if(0 == 1 && 0 == 1)
{
window.top.location.reload();
}
else
{
if(clickedSearch==false && 'c-3244-oil-pumps.aspx' != 'default.aspx')
{
if(requestedPage.indexOf('-mmy-') > 0 || requestedPage.indexOf('_') > 0)
{
var sep_idx = requestedPage.indexOf('-mmy-');
if (sep_idx 0)
{
sendAJAXRequest("ajaxCompunixMMYRequest.aspx?RequestedPage="+requestedPage+"&Make=&Model=&Year=&AutoFill=True&ProductID=" + productid, '', function(response) {
document.getElementById('MMY_MainContainer').innerHTML = response; HideSpinner(); ShowGoButton();
});
}
else
{
if(requestedPage.indexOf('-mmy-') > 0 || requestedPage.indexOf('_') > 0 )
{
sendAJAXRequest("ajaxCompunixMMYRequest.aspx?RequestedPage="+requestedPage+"&Make=&Model=&Year=&ProductID=" + productid, '', function(response) {
document.getElementById('MMY_MainContainer').innerHTML = response.replace('Select Year','Year'); HideSpinner();
});
}
else
{
sendAJAXRequest("ajaxCompunixMMYRequest.aspx?RequestedPage="+requestedPage+"&Make=&Model=&Year=&ID=YearSelector&ProductID=" + productid, '', function(response) {
document.getElementById('MMY_YearSelect').innerHTML = '
'+response.replace('Select Year','Year')+'
'; HideSpinner();
});
}
}
//});