<!-- Begin hiding from old browsers
/*Break frames*/
     if (top.frames.length!=0)
     top.location=self.document.location;
/*Pop-up page, variable width, height; closes when focus is lost*/
var openwin = null;
function KeepTop ()
{
   if (openwin != null && openwin.open) openwin.close();
}
function WinSize(loc,winwidth,winheight)
{
wintype =
'width='+winwidth+',height='+winheight+',toolbar=no,menubar=no,location=no,status=no,copy history=no,scrollbars=yes,resizable=yes,top=0,left=0,screenX=0,screenY=0';
openwin = window.open(loc,'CtrlWindow',wintype);
}
window.onfocus=KeepTop;
/*Forms Handler: Recommend page*/
function reset() {
document.emailform.visitorname.value="";
document.emailform.visitormail.value="";
document.emailform.friendname.value="";
document.emailform.friendmail.value="";
}
function checkFields() {
if ( (document.emailform.visitorname.value=="")  ||
     (document.emailform.visitormail.value=="") ||
     (document.emailform.friendname.value=="") ||
     (document.emailform.friendmail.value=="") )
   {
   alert("Please enter your Name and Email Address, and your friend's Name and Email Address. \n\nThen re-submit this form.");
   return false;
   }}
/*Disable Submit While Sending*/
function disableForm(theform) {
if (document.all || document.getElementById) {
for (i = 0; i < theform.length; i++) {
var tempobj = theform.elements[i];
if (tempobj.type.toLowerCase() == "submit" || tempobj.type.toLowerCase() == "reset")
tempobj.disabled = true;
}}}
// End hiding from old browsers-->