image01 = new Image();
image01.src = "images/block_over.jpg";
image02 = new Image();
image02.src = "images/fit_over.gif";
image02 = new Image();
image02.src = "images/reselect_over.gif";

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 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 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){
	leftPos = (screen.width / 2) - 360;
	topPos = (screen.height / 2) - 260;
	theurl = 'imageViewer.php?img='+filename;
	newwin = window.open(theurl,'ImageViewer','width=720,height=520,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');
}