function applyOnBlur(textBox){
	if (textBox.value == '') 
	{
		textBox.className='watermark';
		textBox.value = 'type in keyword(s)'; 
	}
}

function applyOnFocus(textBox){
	if (textBox.value == 'type in keyword(s)') 
	{
		textBox.value = '';
		textBox.className='text13';
	}
}
function setAction(id, value){
	document.getElementById(id).action += value;
	document.getElementById(id).submit();
}
function lightSelectMenuItem(type, base_path){
	if(type == "resources_links")
		document.getElementById(type+"_button_image").src=base_path+"images/btn_Resources&Link_green.jpg";
	else if(type == "about")
		document.getElementById(type+"_button_image").src=base_path+"images/btn_AboutUs_green.jpg";
	else if(type == "action_advocacy")
		document.getElementById(type+"_button_image").src=base_path+"images/btn_Action&Advocacy_darkblue.jpg";
	else if(type == "cancer_genetics")
		document.getElementById(type+"_button_image").src=base_path+"images/btn_CancerGenetics_darkblue.jpg";
	else if(type == "events_initiatives")
		document.getElementById(type+"_button_image").src=base_path+"images/btn_Calender&Intiatives_green.jpg";
	else if(type == "get_involved")
		document.getElementById(type+"_button_image").src=base_path+"images/btn_GetInvolved_green.gif";
	else if(type == "jewish_genetic_disorders")
		document.getElementById(type+"_button_image").src=base_path+"images/btn_JewishGenetics_darkblue.jpg";
	else if(type == "screening_counseling")
		document.getElementById(type+"_button_image").src=base_path+"images/btn_Screening&Counseling_darkblue.jpg";
}


function checkMail(frm)
{
var goodEmail = frm.signupmail.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.org)|(\.info)|(\.sex)|(\.biz)|(\.aero)|(\.coop)|(\.museum)|(\.name)|(\.pro)|(\..{2,2}))$)\b/gi); 
		if (!goodEmail) { 
			alert("Incorrect email format."); 
			frm.signupmail.focus();
			return false; 
	}
}
