var exclude=/[^@\-\.\w]|^[_@\.\-]|[\._\-]{2}|[@\.]{2}|(@)[^@]*\1/;
var check=/@[\w\-]+\./;
var checkend=/\.[a-zA-Z]{2,3}$/;
		
function more(myPage, windowName, myWidth, myHeight, resize, scroll){
	LeftPosition= (screen.width*0.5)-(myWidth*0.5);
	TopPosition= (screen.height*0.4)-(myHeight*0.5);
	window.open(myPage, windowName, 'width='+myWidth+',height='+myHeight+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=' + resize);
}

function over_img(elem){
	//elem.src = elem.src.replace(".",  "_on.");
 	image_path_arr = elem.src.split("/");
	image = image_path_arr[image_path_arr.length-1].replace(".",  "_on.");
	path = "";
	for (i = 0; i < image_path_arr.length-1; i++) path += image_path_arr[i] + "/";
	elem.src = path + image;
}

function out_img(elem){
	//elem.src = elem.src.replace("_on.",  ".");
	image_path_arr = elem.src.split("/");
	image = image_path_arr[image_path_arr.length-1].replace("_on.",  ".");
	path = "";
	for (i = 0; i < image_path_arr.length-1; i++) path += image_path_arr[i] + "/";
	elem.src = path + image;
}

/*window.onload = function(){
	elem = document.getElementById('practice_areas');
		elem.onmouseover = function(){elem.className='on'}
		elem.onmouseout = function(){elem.className=''}
}*/