
// Application Buttons //
var imgOnAppointment = new Image(222,42);
imgOnAppointment.src = 'rn_ca/appointment2.gif';
var imgOffAppointment = new Image(222,42);
imgOffAppointment.src = 'rn_ca/appointment1.gif';

var imgOnPartsRequest = new Image(183,42);
imgOnPartsRequest.src = 'rn_ca/parts_request2.gif';
var imgOffPartsRequest = new Image(183,42);
imgOffPartsRequest.src = 'rn_ca/parts_request1.gif';

var imgOnCreditApp = new Image(294,42);
imgOnCreditApp.src = 'rn_ca/credit_app2.gif';
var imgOffCreditApp = new Image(294,42);
imgOffCreditApp.src = 'rn_ca/credit_app1.gif';

var imgOnInfo = new Image(315,42);
imgOnInfo.src = 'rn_ca/info2.gif';
var imgOffInfo = new Image(315,42);
imgOffInfo.src = 'rn_ca/info1.gif';

function openWindow(url,width,height){
	newWin = window.open(url, 'viewWin', 'toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=1,left='+(screen.width-width)/2+',top='+(screen.height-height)/2+',width=' + width + ',height=' + height + '');
}		

function changeImg(imgName,imgPre) {
	if(document.images){
		document.images[imgName].src = eval(imgPre + '.src');
	}
}

function changeStyle(obj, new_style) {
    obj.className = new_style;
}
//Usage example: <td class="featurebox" onmouseover="changeStyle(this,'featureboxover')" onmouseout="changeStyle(this,'featurebox')">


function showStatus(sMsg) {
    window.status = sMsg ;
    return true ;
}