 function bookmark(title)
 {

   var urlAddress = location.href;
   var pageName = title;
   var browser = navigator.appName;

  if (browser == 'Microsoft Internet Explorer')
  {
     window.external.AddFavorite(urlAddress,pageName)
  }
  else if (browser == 'Netscape')
  { 
     alert("Your browser does not support this feature.  Use CTRL-D to bookmark this page");
  }
  else
  { 
   alert("Your browser does not support this feature.");
  }
 }
 
 
 function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=600,height=450,left = 326,top = 232');");
}

function openWindow(url) { popupWin = window.open(url, 'openWin', "width=400, height=250, scrollbars=yes"); }

function validate_form ( )
{
	valid = true;
if ( document.contact_form.FName.value == "" )
        {
                alert ( "Please fill in the 'Your First Name' box." );
                valid = false;
        }
 if ( document.contact_form.Email.value == "" )
        {
                alert ( "Please fill in the 'Email' box." );
                valid = false;
        }

 if ( document.contact_form.Subject.value == "" )
        {
                alert ( "Please fill in the 'Subject' box." );
                valid = false;
        }

 if ( document.contact_form.Message.value == "" )
        {
                alert ( "Please fill in the 'Message' box." );
                valid = false;
        }



return valid;

}



function taf()
{       
      eval("window.open('http://rtmlwise.com/theperchstore/index.php?pageurl="+window.location+"','popup','menubar=no,scrollbars=yes,width=500,height=575')");  
}
function newsletter()
{       
      eval("window.open('newsletter.html','popup','menubar=no,scrollbars=no,width=750,height=575')");  
}
function validate_form2 ( )
{
	valid = true;
if ( document.ask_form.Name.value == "" )
        {
                alert ( "Please fill in the 'Name' box." );
                valid = false;
        }
 if ( document.ask_form.Email.value == "" )
        {
                alert ( "Please fill in the 'Email' box." );
                valid = false;
        }

 if ( document.ask_form.Message.value == "" )
        {
                alert ( "Please fill in the 'Message' box." );
                valid = false;
        }


return valid;

}

function validate_form3 ( )
{
	valid = true;
if ( document.url_form.Name.value == "" )
        {
                alert ( "Please fill in the 'Name' box." );
                valid = false;
        }
 if ( document.url_form.Email.value == "" )
        {
                alert ( "Please fill in the 'Email' box." );
                valid = false;
        }

 if ( document.url_form.URL.value == "" )
        {
                alert ( "Please fill in the 'Website URL' box." );
                valid = false;
        }

 if ( document.url_form.PageURL.value == "" )
        {
                alert ( "Please fill in the 'Webpage URL' box." );
                valid = false;
        }



return valid;

}


function popup(src) {
  win = window.open(src,"","top=20,left=20,height=400,width=450,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no")
}


function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
