﻿// basic script to create popup window
function openWindow(url,width,height,name) {
	var myWin = null

	// if the window has not already been created, then create it now
	if(!myWin || myWin.closed) {
		myWin = window.open(url, name, "width=" + width + ",height=" + height + ",status=no,toolbar=no,menubar=no,scrollbars=no,resizable=no");
	// otherwise, just turn focus to the popup window
	} else {
		myWin.focus(wname);
	}
}

function resetNav(name,source) {
    //alert("it got here");
    document["btnapply"].src = "images/btn_apply_now_off.jpg";
    document["btnhome"].src = "images/btn_home_off.jpg";
    document["btnservices"].src = "images/btn_services_off.jpg";
    document["btnlinks"].src = "images/btn_links_off.jpg";
    document["btnforms"].src = "images/btn_forms_off.jpg";
    document["btncontact"].src = "images/btn_contact_us_off.jpg";
    
    document[name].src = source;
}


