<!--
/* ファイル名    : common.js      */
/* 概要          : 共通JavaScript */

	var plgrp_path='/graphics/parts_list/title_button/' ;	// パーツリストボタン

	//
	// メニューボタン画像の表示形式変更
	//
	function SelMenu(id, mode) {
		if ( mode == "on" ) {
			setfile="/graphics/" + id + "_on.gif" ;
		} else {
			setfile="/graphics/" + id + ".gif" ;
		}
		document.getElementById(id).src=setfile ;
		ChangeMouseCur(mode) ;
	}


	//
	// マウスカーソルの形式変更
	//
	function ChangeMouseCur(mode) {
		if ( mode == "on" ) {
			cursormode = "hand";
		} else {
			cursormode = "auto";
		}
		document.body.style.cursor = cursormode ;
	}

	//
	// 画面遷移
	//
	function MoveScreen(url) {
		document.location.href=url;
	}

	//
	// 別画面表示
	//
	function OpenScreen(url) {
		window.open(url, "_blank");
	}

	//
	// 作成中ダイアログ表示
	//
	function DlgCreateNow() {
		alert('現在作成中です。') ;
	}

	//
	// 問い合わせメーラー起動
	//
	function Inq_Mail() {
		this.location.href = "mailto:info@lightsaver-jp.com"; 
	}

	//
	// Yahoo! Auction ストア内検索
	//
	function StoreSearchY(p_item) {
		var locurl ;
		locurl="http://booth.search.auctions.yahoo.co.jp/strsearch" ;
		locurl=locurl+"?desc="+EscapeEUCJP(p_item) ;
		locurl=locurl+"&sb=desc&alocale=0jp&acc=jp&seller=light_saver2008" ;
		window.open(locurl) ;
	}

	//
	// 楽天市場内検索
	//
	function StoreSearchR(p_item) {
		var locurl ;
		locurl="http://esearch.rakuten.co.jp/rms/sd/esearch/vc" ;
		locurl=locurl+"?sv=6&sid=243931&su=auc-lightsaver&f=A" ;
		locurl=locurl+"&sitem="+EscapeEUCJP(p_item) ;
		window.open(locurl) ;
	}

	//
	// セルの表示形式変更
	//
	// id    : 対象セルのID
	// cslnm : セルのスタイル名
	// mode  : on - 選択 / off - 非選択
	function ChgCellStyle(id, clsnm, mode) {
		if ( mode == "on" ) {
			setclass= clsnm + "_on" ;
		} else {
			setclass=clsnm ;
		}
		document.getElementById(id).className=setclass ;
		ChangeMouseCur(mode) ;
	}

	//
	// ボタン画像の表示形式変更(汎用)
	//
	function SelButton(id, mode, grpfile) {
		setfile= plgrp_path + grpfile + "_" + mode + ".gif" ;
		document.getElementById(id).src=setfile ;
		ChangeMouseCur(mode) ;
	}

-->
