var str_host = "petech.jp";
//var str_host = "192.168.0.77/petech";
//***********************************************
//	リンク
//***********************************************
function onClickAct(act){
	with(document.petech){
		var str_act = "";
		switch(act){
			case "basket":
				str_act = "https://" + str_host + "/" + act + ".php";
				break;
			default:
				str_act = "http://" + str_host + "/" + act + ".php";
		}
		action = str_act;
		submit();
	}
}

//***********************************************
//	ペテックニュースへのリンク
//***********************************************
function onClickNews(){
	with(document.petech){
		frame.value = "news";
		news.value = "on";
		action = "http://" + str_host + "/news.php";
		submit();
	}
}

//***********************************************
//	商品ページへのリンク
//***********************************************
function onClickShp(ctg,sub,cd){
	with(document.petech){
		category.value = ctg;
		sub_category.value = sub;
		action = "./shp.php#" + cd;
		submit();
	}
}
//***********************************************
//	topixページへのリンク
//***********************************************
function onClickTpx(frm){
	with(document.petech){
		frame.value = frm;
		news.value = "";
		action = "http://" + str_host + "/topix.php";
		submit();
	}
}

