function show_team(content_id, title){
	$("#" + content_id).removeClass('hidden');
	
	var cnt = $("#" + content_id).html();
	var cnt_width = $("#" + content_id).width();
	var cnt_height = $("#" + content_id).height();
	//alert($("#" + content_id).width() + " plus " + $("#" + content_id).height());
	
	Shadowbox.open({
		content:	cnt,
		player:		"html",
		title:		title,
		width:		cnt_width,
		height:		cnt_height,
		options:{
				onOpen: function ()
				{
					$("#" + content_id).addClass('hidden');
				}
			  } 
	});
}

function validate_newsletter_form(){
	//var nwName	  	= $('#nwName').val();
	var nwEmail  		= $('#nwEmail').val();
	
	// Verify Name
		//if (nwName == '' || nwName.length < 2 ) { inlineMsg('nwName','Please specify your Name!',3); return false; }
	
	// Verify Email
		if (nwEmail == '' || nwEmail.length < 2 ) { inlineMsg('nwEmail','Please specify your Email!',3); return false; }
		
		//if (validateEmail(nwEmail) ) { inlineMsg('nwEmail','Invalid email address!',3); return false; }
	
	$("#news-form").submit();
	return true;
}

function clear_form(){
	$("#news-form")[0].reset();
}

function validateEmail(emailad) {
	
	var exclude=/[^@\-\.\w]|^[_@\.\-]|[\._\-]{2}|[@\.]{2}|(@)[^@]*\1/;
	var check=/@[\w\-]+\./;
	var checkend=/\.[a-zA-Z]{2,4}$/;

	if(((emailad.search(exclude) != -1)||(emailad.search(check)) == -1)||(emailad.search(checkend) == -1)){
		return true;
	}
	else {
		return false;
	}
}
