var errmsg = "";
var errfld;

function del(href) {
  if(confirm("本当に削除しますか")) {
    document.location.href = href;
  }
}

 function popupzip(frm_name, frm_zip1, frm_zip2, frm_addr, relative_dir) {
      window.open(relative_dir+'/zip.php?frm_name='+frm_name+'&frm_zip1='+frm_zip1+'&frm_zip2='+frm_zip2+'&frm_addr='+frm_addr, 'winzip', 'scrollbars=yes,width=470,height=200,top=0,left='+(screen.width-482));
    }

function largeimage(it_id,width,height) {
		var top = 10;
        var left = 10;
        url = "largeimage.php?it_id=" + it_id;
        width = width + 18;
        height = height + 5;
        opt = 'scrollbars=yes,width='+width+',height='+height+',top='+top+',left='+left;
      window.open(url, "largeimage", opt);
    }

// 新しいウィンドー
function popup_window(url, winname, opt)
{
    window.open(url, winname, opt);
}

// ポムメである窓
function popup_formmail(url)
{
	opt = 'scrollbars=yes,width=417,height=385,top=10,left=20';
	popup_window(url, "wformmail", opt);
}


// E-Mail 検事
function email_check(email)
{
    if (email.value.search(/(\S+)@(\S+)\.(\S+)/) == -1)
        return false;
    else
        return true;
}