function bookmark(bloguserid, blogtitle) {
	netscape="Use CTRL+D to add a bookmark to this site.";
	if (navigator.appName=='Microsoft Internet Explorer') {
		window.external.AddFavorite('http://www.gardenstew.com/blog/index' + bloguserid + '.html', blogtitle);
	}
	else if (navigator.appName=='Netscape') {
		alert(netscape);
	}
}

function checkFormEntryPage() {

	formErrors = false;

	if (document.comment.comment_text.value.length == 0) {
		formErrors = "You must enter a comment.";
		document.comment.comment_text.focus();
	}

	if(document.comment.comment_text.value.length > 1000) {
		formErrors = "Comment must be no greater than 1000 characters. Current count: " + document.comment.comment_text.value.length;
		document.comment.comment_text.focus;
	}

	if (formErrors) {
		alert(formErrors);
		return false;
	} else {
		return true;
	}
}

/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: Cat Arriola :: http://astrodiva.journalspace.com */

function fixImgs(whichId, maxW) {
var pix=document.getElementById(whichId).getElementsByTagName('img');
  for (i=0; i<pix.length; i++) {
    w=pix[i].width;
    h=pix[i].height;
    if (w > maxW) {
      f=1-((w - maxW) / w);
      pix[i].width=w * f;
      pix[i].height=h * f;
    }
  }
}

function bookmark() {
	netscape="Use CTRL+D to add a bookmark to this site."
	if (navigator.appName=='Microsoft Internet Explorer') {
		window.external.AddFavorite('http://www.gardenstew.com/', 'GardenStew.com -  Home and Gardening Forums & Blogs');
	}
	else if (navigator.appName=='Netscape') {
		alert(netscape);
	}
}
//-->