if (document.images) {
hme_on = new Image();	hme_on.src = view_path + "images/nav2/homeRO.gif";
hme_off = new Image();	hme_off.src = view_path + "images/nav2/home.gif";
abo_on = new Image();	abo_on.src = view_path + "images/nav2/aboutRO.gif";
abo_off = new Image();	abo_off.src = view_path + "images/nav2/about.gif";
pro_on = new Image();	pro_on.src = view_path + "images/nav2/propertiesRO.gif";
pro_off = new Image();	pro_off.src = view_path + "images/nav2/properties.gif";
mls_on = new Image();	mls_on.src = view_path + "images/nav2/mlsRO.gif";
mls_off = new Image();	mls_off.src = view_path + "images/nav2/mls.gif";
res_on = new Image();	res_on.src = view_path + "images/nav2/resourcesRO.gif";
res_off = new Image();	res_off.src = view_path + "images/nav2/resources.gif";
mar_on = new Image();	mar_on.src = view_path + "images/nav2/marinRO.gif";
mar_off = new Image();	mar_off.src = view_path + "images/nav2/marin.gif";
}


function roll(sname,rname){
    sname.src = rname.src;
}
function id2elem(id) {
	if (typeof(id) != 'string') {
		return id;
	}
	if (document.getElementById) {
		id = document.getElementById(id);
	} else if (document.all) {
		id=document.all[id];
	} else {
		id = null;
	}
	return id;
}
function popup(url,width,height){
    nw = window.open(url,"newwindow","width="+width+",height="+height+",status=0,toolbar=0,menubar=0,scrollbars=1,resizable=1,location=0");
    nw.focus();
}

function checkForm(){
if (document.subscribeForm.elements['Email Address'].value.length > 0){
 return true;
 }
else{
 alert('Please enter your email address.');
 document.subscribeForm.elements['Email Address'].focus();
 return false;
 }
}