function config(quote, id) {
  document.quote.search.value=quote
  document.quote.id.value=id
}

function checkform ( form )
{
  if ((form.zipcode.value == "") || (form.zipcode.value.length < 5)) {
    alert( "Please enter your 5 digit zipcode." );
    form.zipcode.focus();
    return false ;
  }
  return true ;
}

// http://www.web-source.net/javascript_redirect_box.htm
function goto(form) { 
	var index=form.select.selectedIndex
	if (form.select.options[index].value != "0") {
	location=form.select.options[index].value;}
}

// http://emanaton.com/coding/javascript/linkthispage
function createBookmarkLink(url, title) {
	try {
		if (window.sidebar) { // Mozilla Firefox Bookmark
			return window.sidebar.addPanel(title, url, "");
		} else if( window.external ) { // IE Favorite
			return window.external.AddFavorite( url, title); 
		} else if(window.opera && window.print) { // Opera Hotlist
			return true; 
		}
	} catch(err) {
		// do nothing
	}
	alert('Could not create a bookmark on your client.\n\nTo return to ' + title + ' you must manually create a bookmark to: \n' + url + '.');
}

function writeBookmarkLink(url, title) {
	try {
		if (window.sidebar) { // Mozilla Firefox Bookmark
			return document.write('<a href="javascript:createBookmarkLink(\'' + url + '\', \'' + title + '\')");">Bookmark</a>'); 
		} else if (window.external) { // IE Favorite
			return document.write('<a href="javascript:createBookmarkLink(\'' + url + '\', \'' + title + '\')");">Bookmark</a>'); 
		} else if (window.opera && window.print) { // Opera Hotlist
			return document.write('<a rel="sidebar" href="' + url + '" title="' + title + '">Bookmark</a>');
		} 
	} catch(err) {
		// do nothing
	}
	return document.write('To return to ' + title + ' create a bookmark to: <a style="color: white;" href="' + url + '">' + url + '</a>');
}


