function openWindow(url,name,width,height,resizable) {
	window.open(url,name,"height="+height+",width="+width+",location=no,menubar=no,resizable="+resizable+",scrollbars=yes,status=no,toolbar=no");
}
    
    
function validateForm(theForm, msgName, msgEmail, msgContent) {

	if (theForm.name.value == "") {
	    alert(msgName);
           theForm.name.focus();
           return false;
	}
	if (!checkEmail(theForm.email.value)) {
	    alert(msgEmail);
           theForm.email.focus();
           return false;
	}
	 if (theForm.content.value == "") {
           alert(msgContent);
           theForm.content.focus();
           return false;
       }
       return true;
}

function checkEmail(email) {
	
	reg = new RegExp('^([a-zA-Z0-9\\-\\.\\_]+)'+
                  '(\\@)([a-zA-Z0-9\\-\\.]+)'+
                  '(\\.)([a-zA-Z]{2,4})$');
	return reg.test(email);

}
