function input()

{

data=""; zip=""; fax=""; koumoku="";

if (document.form1.kaisya.value=="") { alert("会社名・団体名を記入して下さい"); return false; }

if (document.form1.name.value=="") { alert("お名前を記入して下さい"); return false; }

if (document.form1.tel1.value=="") { alert("電話番号を記入して下さい"); return false; }

if (document.form1.email.value=="") { alert("e-mailアドレスを記入して下さい"); return false; }

if (document.form1.email.value.indexOf("@",0)<0 || document.form1.email.value.indexOf(".",0)<0) { alert("e-mailアドレスは半角で正確に記入して下さい"); return false }

if (document.form1.zip1.value!="") { zip="〒"+document.form1.zip1.value+"-"+document.form1.zip2.value+"　"+document.form1.jyuusyo.value; }

if (document.form1.fax1.value!="") { fax=document.form1.fax1.value+"-"+document.form1.fax2.value+"-"+document.form1.fax3.value; }

if (document.form1.koumoku1.checked==true) { koumoku=document.form1.koumoku1.value; }

if (document.form1.koumoku2.checked==true) { koumoku=koumoku+document.form1.koumoku2.value; }

if (document.form1.koumoku3.checked==true) { koumoku=koumoku+document.form1.koumoku3.value; }

if (document.form1.koumoku4.checked==true) { koumoku=koumoku+document.form1.koumoku4.value; }

if (koumoku=="") { alert("お問い合わせ項目を記入して下さい"); return false; }

data="会社名・団体名 ： "+document.form1.kaisya.value+"\n";

data=data+"部署名 ： "+document.form1.busyo.value+"\n";

data=data+"役職 ： "+document.form1.yaku.options[document.form1.yaku.selectedIndex].value+"\n";

data=data+"お名前 ： "+document.form1.name.value+"\n";

data=data+"勤務先住所 ： "+zip+"\n";

data=data+"電話番号 ： "+document.form1.tel1.value+"-"+document.form1.tel2.value+"-"+document.form1.tel3.value+"\n";

data=data+"FAX番号 ： "+fax+"\n";

data=data+"e-mailアドレス ： "+document.form1.email.value+"\n";

data=data+"業種 ： "+document.form1.gyousyu.value+"\n";

data=data+"職種 ： "+document.form1.syokusyu.value+"\n";

data=data+"お問い合わせ項目 ： "+koumoku+"\n";

data=data+"無料サンプル請求 ： "+document.form1.samp.value+"\n";

data=data+"お問い合わせ内容 ： "+document.form1.toiawase.value;

document.form2._mail.value=document.form1.email.value;

document.form2._name.value=document.form1.name.value;

document.form2.mail.value=data;

}

