/* =================================================== *
 * National Association of Certified Business Brokers  *
 *                                                     *
 *                          | common.js                *
 * AUTHOR: Kevin Scholl     | kscholl@comcast.net      *
 * CREATED: 26 Jul 2006     | UPDATED: 26 Jul 2006     *
 * =================================================== */



/* ===================================================== *
 * CHANGE FORMS
 * ===================================================== */
 
 function change1(url){
location.href=url;	
}

function goToURL(theTarget,theURL) {
	var theDestination = "https://SayLendingCenter.com/index_mortgage.asp?st=" + theURL;
	eval(theTarget + ".location='" + theDestination + "'");
	}
	
function goToURL2(theTarget,theURL) {
	var theDestination = "https://SayLendingCenter.com/index_equity.asp?st=" + theURL;
	eval(theTarget + ".location='" + theDestination + "'");
	}
	
	
function goToURL3(theTarget,theURL) {
	var theDestination = "" + theURL;
	eval(theTarget + ".location='" + theDestination + "'");
	}
	
function goToURL4(theTarget,theURL) {
	var theDestination = "https://SayLendingCenter.com/index_consolidate.asp?st=" + theURL;
	eval(theTarget + ".location='" + theDestination + "'");
	}
	
function goToURL5(theTarget,theURL) {
	var theDestination = "https://SayLendingCenter.com/index_auto.asp?st=" + theURL;
	eval(theTarget + ".location='" + theDestination + "'");
	}

function goToURL6(theTarget,theURL) {
	var theDestination = "https://SayLendingCenter.com/index_refi.asp?st=" + theURL;
	eval(theTarget + ".location='" + theDestination + "'");
	}

function goToURL7(theTarget,theURL) {
	var theDestination = "https://SayLendingCenter.com/index_debt.asp?st=" + theURL;
	eval(theTarget + ".location='" + theDestination + "'");
	}

function goToURL9(theTarget,theURL) {
	var theDestination = "https://SayLendingCenter.com/index_build.asp?st=" + theURL;
	eval(theTarget + ".location='" + theDestination + "'");
	}
	
/* ===================================================== *
 * CHANGE FORMS
 * ===================================================== */


function bookmark(url,title){
  if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) {
  window.external.AddFavorite(url,title);
  } else if (navigator.appName == "Netscape") {
    window.sidebar.addPanel(title,url,"");
  } else {
    alert("Press CTRL-D (Netscape) or CTRL-T (Opera) to bookmark");
  }
}
