image01 = new Image();
image01.src = "images/home_over.jpg";
image02 = new Image();
image02.src = "images/baits_over.jpg";
image03 = new Image();
image03.src = "images/artist_over.jpg";
image04 = new Image();
image04.src = "images/customer_service_over.jpg";
image05 = new Image();
image05.src = "images/bait_info_over.jpg";
image06 = new Image();
image06.src = "images/home_down.jpg";
image07 = new Image();
image07.src = "images/baits_down.jpg";
image08 = new Image();
image08.src = "images/artist_down.jpg";
image09 = new Image();
image09.src = "images/customer_service_down.jpg";
image10 = new Image();
image10.src = "images/bait_info_down.jpg";
image11 = new Image();
image11.src = "images/order_over.jpg";


function emptyvalidation(entered, alertbox)
{
with (entered)
{
if (value==null || value=="")
{if (alertbox!="") {alert(alertbox);} return false;}
else {return true;}
}
}

function formvalidation(form) {
	with (form) {
	
	if (emptyvalidation(email,"Please Enter Your Email Address")==false) {email.focus(); return false;};
	if (emptyvalidation(password,"Please Enter Your Password")==false) {password.focus(); return false;};

	

this.form.submit();
}
}
function subscriberValidation(form) {
	with (form) {
	if (emptyvalidation(subscriber,"Please Enter Your Email Address")==false) {subscriber.focus(); return false;};
this.form.submit();
}
}
function emptyvalidation2(entered, alertbox)
{
with (entered)
{
if (value==null || value=="")
{if (alertbox!="") {alert(alertbox);} return false;}
else {return true;}
}
}

function formvalidation2(form) {
	with (form) {
	if (emptyvalidation2(em_name,"Please Enter Your Name")==false) {em_name.focus(); return false;};	
	if (emptyvalidation2(em_email,"Please Enter Your Email Address")==false) {em_email.focus(); return false;};	
	if (emptyvalidation2(em_comments,"Please Enter Your Comments")==false) {em_comments.focus(); return false;};	

this.form.submit();
}
}

function formvalidation3(form) {
	with (form) {
	if (emptyvalidation2(o_name,"Please Enter Your Name")==false) {o_name.focus(); return false;};	
	if (emptyvalidation2(o_email,"Please Enter Your Email Address")==false) {o_email.focus(); return false;};
	if (emptyvalidation2(o_phone,"Please Enter Your Phone Number")==false) {o_phone.focus(); return false;};	
	if (emptyvalidation2(o_address,"Please Enter Your Shipping Address")==false) {o_address.focus(); return false;};	

this.form.submit();
}
}

function openPrint() {	
	leftPos = (screen.width / 2) - 360;
	topPos = (screen.height / 2) - 270;
	newwin = window.open('print_resume.php','PrintPage','width=720,height=540,left='+leftPos+',top='+topPos+',innerHeight=0,innerWidth=0,outerHeight=0,outerWidth=0,channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=1,scrollbars=1,status=0,toolbar=1');
}
function locator_provstate()
{
	box = document.forms[0].provstate;
	destination = box.options[box.selectedIndex].value;
	theurl = "store_locator.php?state="+destination;
	if (destination) parent.location.href = theurl;
}


function print_cert(){
	leftPos = (screen.width / 2) - 360;
	topPos = (screen.height / 2) - 160;
	newwin = window.open('print_cert.php','PrintCertificate','width=720,height=320,left='+leftPos+',top='+topPos+',innerHeight=0,innerWidth=0,outerHeight=0,outerWidth=0,channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=1,scrollbars=1,status=0,toolbar=1');
}

function openImage(filename,display){
	leftPos = (screen.width / 2) - 350;
	topPos = (screen.height / 2) - 160;
	theurl = 'imageViewer.php?img='+filename+'&disp='+display;
	newwin = window.open(theurl,'ImageViewer','width=700,height=320,left='+leftPos+',top='+topPos+',innerHeight=0,innerWidth=0,outerHeight=0,outerWidth=0,channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=1,scrollbars=1,status=0,toolbar=1');
}

function openImage2(filename,display){
	leftPos = (screen.width / 2) - 365;
	topPos = (screen.height / 2) - 230;
	theurl = 'imageViewer.php?img='+filename+'&disp='+display;
	newwin = window.open(theurl,'ImageViewer','width=780,height=460,left='+leftPos+',top='+topPos+',innerHeight=0,innerWidth=0,outerHeight=0,outerWidth=0,channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=1,scrollbars=1,status=0,toolbar=1');
}