/**
 * window.open実行関数
 * NNは関数にwindow.openメソッド以外の処理記述がある場合、実行されません。
 * それを回避するwindow.openを実行するための関数です。
 **/
function openWindow(url,name,features){
	return(window.open(url,name,features));
}

/**
 * メールアドレスとして明らかに間違っているものをチェックします。
 * 条件は以下のとおり
 *	1.文字列先頭から @ の直前の間に @ 以外の任意の文字がひとつ以上ある
 *	2.@ の後にはドット以外の文字がひとつ以上ある
 *	3.ドットの後に任意の文字がひとつ以上ある
 *	4.@はひとつのみ
 **/
function checkMailAddress(mail){
	if(mail == null || mail.length <= 0){
		return true;
	}
	if (mail.match(/^[^@]+@[^.]+\..+/)) {
		return true;
	}
	return false;
}
