ok2submit=false;


function imageOn(id){
	s1="document.images.";
	s2=".src=";
	s3="'../images/navbar/"+id+"-ro.gif'";
	eval(s1+id+s2+s3); 
	}
	
	
	function imageOff(id){
	s1="document.images.";
	s2=".src=";
	s3o="'../images/navbar/"+id+".gif'";
	eval(s1+id+s2+s3o); 
	}
	
	function switchPic(i){
sb="../images/portfolio/"+i+"-b.jpg";
document.images.viewer.src=sb;  //switch viewer image to current image
b="document.getElementById('"; //beginning of border rollover
e="').style.borderColor='#A27B43'"; //end of border rollover
eval(b+i+e); //evaluate of border rollover

}

function borderNorm(i){
b="document.getElementById('"; //beginning of border rollover
e="').style.borderColor='#EDEBCB'"; //end of border rollover
eval(b+i+e); //evaluate of border rollover
}


function check4Blanks(){
if (document.contactFormTest.myfullname.value.length>0&&document.contactFormTest.myemail.value.length>0&&document.contactFormTest.myphone.value.length>0){
	document.contactFormTest.submit();
	}
	else{
	alert("Please fill in the missing information before continuing.");
	}
	
}

function check4BlanksAm(){
if (document.contactFormAm.myfullname.value.length>0&&document.contactFormAm.myemail.value.length>0&&document.contactFormAm.myphone.value.length>0){
	document.contactFormAm.submit();
	}
	else{
	alert("Please fill in the missing information before continuing.");
	}
	
}
