if (self != top) top.location.href = window.location.href;

function getDOMObj(s) {

	if(document.getElementById)
		return(document.getElementById(s));

	if(document.all)
		return(document.all.item(s));

	return(null);
}

function toggleBox() {

	v=getDOMObj("innerbox");
	
	if(v.style.display=="block"||v.style.display=="") {
		sDisplay="none";
	  v=getDOMObj("hide");
		v.src="/pop/img/plus.gif";
		v.alt="Click Here to Show Links";
}
	else {
   	sDisplay="block";
		v=getDOMObj("hide");
		v.src="/pop/img/minus.gif";
		v.alt="Click Here to Hide Links";
}
	v=getDOMObj("innerbox");
	v.style.display=sDisplay;
}

function validateComments() {

	var s=new String("");
	var f=document.fmComment;

	if(""!=f.sEmail.value && (f.sEmail.value.length<30)) {
		s+="Comment from: "+f.sEmail.value+"\n";
	}
	if(""!=f.tComment.value && (f.tComment.value.length<1000)) {
		s+="Comment text:\n"+f.tComment.value+"\n";
	}
	f.sEmailText.value=s;
	return(true);

}
