<!--//
function resizeWin(newLoc, newWidth, newHeight) {
        newWin = open("",newLoc,"scrollbars=no,resizable=yes,status=no,height=" + newHeight + ",width=" + newWidth);
}

bName = navigator.appName;
bVer = parseInt(navigator.appVersion);
if ((bName == "Netscape" && bVer>=3) ||
(bName == "Microsoft Internet Explorer" && bVer >= 4)) br = "n3";
else br = "n2";
//Create image objects, preload all active and inactive images.
if (br== "n3"){
	img1on = new Image();
	img1on.src = "images/nav/about_on.gif";
	img1off = new Image();
	img1off.src = "images/nav/about_off.gif";
	
	img2on = new Image();
	img2on.src = "images/nav/services_on.gif";
	img2off = new Image();
	img2off.src = "images/nav/services_off.gif";
	
	img3on = new Image();
	img3on.src = "images/nav/portfolio_on.gif";
	img3off = new Image();
	img3off.src = "images/nav/portfolio_off.gif";
	
	img4on = new Image();
	img4on.src = "images/nav/testimonials_on.gif";
	img4off = new Image();
	img4off.src = "images/nav/testimonials_off.gif";
	
	img5on = new Image();
	img5on.src = "images/nav/contact_on.gif";
	img5off = new Image();
	img5off.src = "images/nav/contact_off.gif";


}
function imgAct(imgName){
if (br== "n3"){
document[imgName].src = eval(imgName + "on.src");
}
}
function imgInact(imgName){
if (br=="n3"){
document[imgName].src = eval(imgName + "off.src");
}
}

function iLighter(item, method){
	if(method){
		item.bgColor="#F9F9F9";
	}else{
		item.bgColor="#EFEFEF";
	}
}

function chkForm(myForm){
	if (myForm.name.value == "") {
		myForm.name.focus();
		alert("You must enter your name.");
		return false;
	}
    
	chkemail = false;
    var email = myForm.email.value;
    var chkchar64 = email.indexOf('@');
    if (chkchar64 == -1) {
        myForm.email.focus();
        alert("An email address must contain the @ symbol. \nPlease enter a valid email address.");
		return false;
    }
        var chkchar46 = email.indexOf('.', chkchar64);
        if (chkemail == false && chkchar46 == -1) {
        myForm.email.focus();
        alert("An email address must contain a suffix such as \'.com\', \'.net\', or \'.edu\' \nPlease enter a valid email address.");
		return false;
    }

	if (myForm.preference(0).checked) {
		if(myForm.phone.value == ""){
			myForm.phone.focus();
			alert("Whoops! You selected to be contacted by phone \nbut you forgot to give us your number!");
			return false;
		}
	}
	if (myForm.preference(1).checked) {
		if(myForm.cell.value == ""){
			myForm.cell.focus();
			alert("Whoops! You selected to be contacted by cell \nbut you forgot to give us your number!");
			return false;
		}
	}
	if (myForm.preference(2).checked) {
		if(myForm.email.value == ""){
			myForm.email.focus();
			alert("Whoops! You selected to be contacted by email \nbut you forgot to give us your email address!");
			return false;
		}
	}
	return true;
}

//-->
