//THE ROLLOVER CODE START HERE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
if (document.images) {
//THE NAVIGATION ROLLOVERS START HERE
about_off = new Image
about_on = new Image
gallery_off = new Image
gallery_on = new Image
news_off = new Image
news_on = new Image
test_off = new Image
test_on = new Image
contact_off = new Image
contact_on = new Image
//THE NAVIGATION ROLLOVERS END HERE


//THE NAVIGATION ROLLOVER .SRC CODES START HERE
about_off.src = "http://www.h2photos.com/pix/about.gif"
about_on.src = "http://www.h2photos.com/pix/about_over.gif"
gallery_off.src = "http://www.h2photos.com/pix/galleries.gif"
gallery_on.src = "http://www.h2photos.com/pix/galleries_over.gif"
news_off.src = "http://www.h2photos.com/pix/news.gif"
news_on.src = "http://www.h2photos.com/pix/news_over.gif"
test_off.src = "http://www.h2photos.com/pix/test.gif"
test_on.src = "http://www.h2photos.com/pix/test_over.gif"
contact_off.src = "http://www.h2photos.com/pix/contact.gif"
contact_on.src = "http://www.h2photos.com/pix/contact_over.gif"
//THE NAVIGATION ROLLOVER .SRC CODES END HERE
}


//THE ROLLOVER FUNCTIONS START HERE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
function chgImg (imgField,newImg) {
if (document.images) {
document[imgField].src=eval(newImg 
+ ".src")
}
}
//THE ROLLOVER CODE END HERE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

//EMAIL VALIDATOR STARTS HERE!!!!!!!!!!!!!!!!!
function validEmail2(emaila) {
invalidChars2 = " /:,;"
if (emaila == "") {
return false
}
for (i=0; i<invalidChars2.length;
i++) {
badChar2 = invalidChars2.charAt(i)
if (emaila.indexOf(badChar2,0) > -1) {
return false
}
}
atPos2 = emaila.indexOf("@",1)
if (atPos2 == -1) {
return false
}
if (emaila.indexOf("@",atPos2+1) > -1) {
return false
}
periodPos2 = emaila.indexOf(".",atPos2)
if (periodPos2 == -1) {
return false
}
if (periodPos2+3 > emaila.length) {
return false
}
return true
}

function submitIt(hform) {
if (!validEmail2(hform.email.value)) {
alert ("UH-OH!!!!!!  Your e-mail address appears to be invalid!!!!! Please enter a valid one.  THANKS!!!!!!!!")
hform.email.focus()
hform.email.select()
return false
}
return true
}
//EMAIL VALIDATOR ENDS HERE!!!!!!!!!!!!!!!!!





//GALLERY VALIDATOR STARTS HERE!!!!!!!!!!!!!!!!!
function showPic (whichpic) { 
	if (document.getElementById) { 
		document.getElementById('ph').src = whichpic.href; 
		if (whichpic.title) { 
			document.getElementById('desc').childNodes[0].nodeValue = whichpic.title; 
		} else { 
			document.getElementById('desc').childNodes[0].nodeValue = whichpic.childNodes[0].nodeValue; 
		} 
		return false; 
	} else { 
		return true; 
	} 
}
//GALLERY VALIDATOR ENDS HERE!!!!!!!!!!!!!!!!!



//POPUP FUNCTION STARTS HERE!!!!!!!!!!!!!!!!!!!!!!!!!!!!
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=672,height=390,left = 312.5,top = 380');");
}
//POPUP FUNCTION STARTS HERE!!!!!!!!!!!!!!!!!!!!!!!!!!!!



//NETSCAPE FORWARDING FUNCTION STARTS HERE
function MM_checkBrowser(NSvers,NSpass,NSnoPass,IEvers,IEpass,IEnoPass,OBpass,URL,altURL) { //v4.0
var newURL='', verStr=navigator.appVersion, app=navigator.appName, version = parseFloat(verStr);
if (app.indexOf('Netscape') != -1) {
if (version >= NSvers) {if (NSpass>0) newURL=(NSpass==1)?URL:altURL;}
else {if (NSnoPass>0) newURL=(NSnoPass==1)?URL:altURL;}
} else if (app.indexOf('Microsoft') != -1) {
if (version >= IEvers || verStr.indexOf(IEvers) != -1)
{if (IEpass>0) newURL=(IEpass==1)?URL:altURL;}
else {if (IEnoPass>0) newURL=(IEnoPass==1)?URL:altURL;}
} else if (OBpass>0) newURL=(OBpass==1)?URL:altURL;
if (newURL) { window.location=unescape(newURL); document.MM_returnValue=false; }
}
//NETSCAPE FORWARDING FUNCTION ENDS HERE