function homepage(){
<!-- Begin
// If it's Internet Explorer, use automatic link
// Be sure to change the "http://www.saneeks.com\"
// to the URL you want them to bookmark.

if (document.all){
  document.write('<a href="javascript:history.go(0);" onClick="this.style.behavior=\'url(#default#homepage)\';this.setHomePage(\'http://www.saneeks.com\');">Make SaNeeks Your Homepage</a>');
}

// If it's Netscape 6, tell user to drag link onto Home button
// Be sure to change the "http://www.YourWebSiteHere.com\"
// to the URL you want them to bookmark.
else if (document.getElementById){
  document.write('<a href="http://www.saneeks.com" alt="Drag this link onto your Home button to make this your Home Page.">Make SaNeeks Your Homepage</a>');
}

// If it's Netscape 4 or lower, give instructions to set Home Page
else if (document.layers){
  document.write('<span alt="Go to Preferences in the Edit Menu. - Choose Navigator from the list on the left. - Click on the Use Current Page button.><a href="#">Make SaNeeks Your Homepage</a></span>');
}

// If it's any other browser, for which I don't know the specifications of home paging, display instructions
else {
  document.write('<span alt="Go to Preferences in the Edit Menu. - Choose Navigator from the list on the left. - Click on the Use Current Page button.><a href="#">Make SaNeeks Your Homepage</a></span>');
}

//  End -->
}

function bookmarksite(title, url){
var title = "SaNeeks Search - Remember when surfing the net was easy?";
var url = "http://www.saneeks.com";
if (document.all)
window.external.AddFavorite(url, title);
else if (window.sidebar)
window.sidebar.addPanel(title, url, "")
}

function textCounter(field, countfield, maxlen) {
var maxlimit = maxlen;
if (field.value.length > maxlimit) // if the current length is more than allowed
	field.value =field.value.substring(0, maxlimit); // don't allow further input
else
	countfield.value = maxlimit - field.value.length; // set the display field to remaining number
}

var checkflag = "false";
function check(field) {

	//alert(field.elements["item0"].value);
	
	if (checkflag == "false") {
		for (i = 0; i < field.length; i++) {
		field[i].checked = true;
		}
		checkflag = "true";
		return "Uncheck All";
	}
	else {
		for (i = 0; i < field.length; i++) {
		field[i].checked = false;
		}
		checkflag = "false";
		return "Check All";
	}
}