function _chgimg(imgName,imgUrl){ document.images[imgName].src = imgUrl; }

function addFavorite(TL){
	var brw_v = navigator.appVersion.charAt(0);
	var brw_n = navigator.appName.charAt(0);
	if((brw_v >= 4)&&(brw_n == "M")){
		window.external.AddFavorite(location.href, TL);
	}else{
		window.alert("IE4以上のみの対応です");
	}
}

function total(){
	var tot = 0;
	for(i = 0; i< 35; i++){
		if(document.order.elements[i].checked){
			tot += tanka[i];
		}
	}
document.order.合計金額.value = tot;
}

var tanka =Array(35);
tanka[0] = 3925;
tanka[1] = 3825;
tanka[2] = 1600;
tanka[3] = 1430;
tanka[4] = 1430;
tanka[5] = 970;
tanka[6] = 4383;
tanka[7] = 4283;
tanka[8] = 1800;
tanka[9] = 3568;
tanka[10] = 2039;
tanka[11] = 5036;
tanka[12] = 3260;
tanka[13] = 3260;
tanka[14] = 3260;
tanka[15] = 3800;
tanka[16] = 3600;
tanka[17] = 4590;
tanka[18] = 3975;
tanka[19] = 1840;
tanka[20] = 980;
tanka[21] = 1170;
tanka[22] = 5800;
tanka[23] = 1000;
tanka[24] = 1100;
tanka[25] = 550;
tanka[26] = 1200;
tanka[27] = 0;
tanka[28] = 2280;
tanka[29] = 330;
tanka[30] = 1000;
tanka[31] = 600;
tanka[32] = 2100;
tanka[33] = 500;
tanka[34] = 780;

function checkform(thisForm) { 
	if( thisForm._NOEMP_お名前.value == null ||  thisForm._NOEMP_お名前.value == "") {
		alert("お名前をご記入ください。"); 
		thisForm._NOEMP_お名前.focus(); 
		thisForm._NOEMP_お名前.select(); 
		return false; 
	} 
	if( thisForm._NOEMP_住所.value == null ||  thisForm._NOEMP_住所.value == "" ) {  
		alert("住所をご記入ください。");
		thisForm._NOEMP_住所.focus();
		thisForm._NOEMP_住所.select();
		return false; 
	}
	if( thisForm._NOEMP_電話番号.value == null ||  thisForm._NOEMP_電話番号.value == "" ) {  
		alert("電話番号をご記入ください。");
		thisForm._NOEMP_電話番号.focus();
		thisForm._NOEMP_電話番号.select();
		return false; 
	}
	if( thisForm._NOEMP_Mail.value == null ||  thisForm._NOEMP_Mail.value == "" ) {  
		alert("e-mailをご記入ください。");
		thisForm._NOEMP_Mail.focus();
		thisForm._NOEMP_Mail.select();
		return false; 
	}
	return true;
}

function clearP()
{
	if(document.news.p.value == '日経')
	{
		document.news.p.value = '';
	}
}

function subm()
{
	if(document.news.p.value == '')
	{
		alert("検索キーワードを入力してください。");
		return false;
	}
	return true;
}
