// Virtual Guestbook Javascript functions

<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
//-->

<!-- 
//Function to add the code to the message for the smileys
function AddSmileyIcon(xIcon) {	
	window.opener.document.addcomment.comments.value += iconCode + " ";
}
//Function to add the code to the message for the smileys
function AddSmileyIcon(iconCode) {	
		document.addcomment.comments.value += iconCode + " ";
		document.addcomment.comments.focus();
}
// -->


function tmt_lenValidator(f,sp,ep,ks,eMsg){
	var str;var myErr="";var re=/^(\s*)$/;fv=MM_findObj(f).value;
	if(ks){if(re.test(fv)){fv=fv.replace(re,"");}}
	if(fv.length<sp||fv.length>ep){alert(unescape(eMsg));myErr += 'eMsg';}
	document.MM_returnValue=(myErr=="");
}

<!-- Hide me from lame browsers
//create a function that will return true
function killErrors() {
return true;
}
window.onerror = killErrors;

// -->