<!--

/*

This Script is copyrighted Web-design material by BooksellerSoft.
Under no circumstances does any individual or entity have the right to distribute,
copy or modify this program without the exclusive written permission of BooksellerSoft.
For information regarding this script or to report a bug please write to:
support@BooksellerSoft.com

*/

function rollIn(el)
{
var ms = navigator.appVersion.indexOf("MSIE")
ie4 = (ms>0) && (parseInt(navigator.appVersion.substring(ms+5, ms+6)) >= 4)
if(ie4)
	{
	el.initstyle=el.style.cssText;el.style.cssText=el.rolloverstyle
	}
}

function rollOut(el)
{
var ms = navigator.appVersion.indexOf("MSIE")
ie4 = (ms>0) && (parseInt(navigator.appVersion.substring(ms+5, ms+6)) >= 4)
if(ie4)
	{
	el.style.cssText=el.initstyle
	}
}

function val_Checkout()
{
alert("There are no items currently in your shopping cart.");
return (false)
}

function val_SearchForm(SearchForm)
{
if (SearchForm.SearchText.value == "" || SearchForm.SearchText.value == " ")
 {
alert("You forgot enter a value, \"Keyword\" or phrase in the search text box.")
SearchForm.SearchText.focus();
return (false);
 }
return (true);
}

function val_LoginForm(LoginForm)
{
if (LoginForm.email.value == "")
 {
alert("Please enter your User-ID, in the \"User-ID\" field.")
SearchForm.email.focus();
return (false);
 }

if (LoginForm.pass.value == "")
 {
alert("Please enter your password, in the \"Password\" field.")
SearchForm.pass.focus();
return (false);
 }

return (true);
}

function val_NewsletterForm(NewsletterForm)
{
if (Newsletter.Name_Company.value == "")
 {
alert("Please enter your name and/or company name, in the \"Name or Company\" field.")
Newsletter.Name_Company.focus();
return (false);
 }

var xEmail = Newsletter.Email.value

if (xEmail == "")
 {
alert("Please enter your E-mail address, in the \"E-mail address\" field.")
Newsletter.Email.focus();
return (false);
 }

if (xEmail != "")
 {
var  crucial1 = xEmail.indexOf("@");
var  crucial2 = xEmail.indexOf(".");
if (crucial1 < 1 || crucial2 < 1)
	{
alert("The Email address you just entered is NOT in a VALID format. Please revise.");
Newsletter.Email.focus();
return (false);
	}
 }

return (true);
}
	
//-->