function writeFlash( swf , width , height )
{
  var htm = ""
  htm+="<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000'"
  htm+="        codebase='http://download.macromedia.com/pub/shockwave/"
                    htm+="cabs/flash/swflash.cab'"
  htm+="        width   = " + width
  htm+="        height  = " + height + ">"
  htm+="<param  name    = movie value=" + swf + ">"
  htm+="<param  name    = quality value=high>"
  htm+="<embed  src     = " + swf + " "
  htm+="        quality = high  "
  htm+="        width   = "+ width
  htm+="        height  = " + height
  htm+="        type    = 'application/x-shockwave-flash' "
  htm+="        pluginspage='http://www.macromedia.com/go/getflashplayer'>"
  htm+="</embed>"
  htm+="</object>"
  document.write(htm)
}
function check(){
//全てのelements内で禁止文字のチェック
	num = document.form1.elements.length
	str = new Array("'",'"',"\\","=","\*","\?","(",")","\/","\+","\,")
	for(j=0;j<str.length;j++){
		for(i=0;i<num;i++){
			if(document.form1.elements[i].value.toLowerCase().indexOf(str[j],0) >= 0){
				alert("使用できない文字「"+str[j]+"」があります。");
				document.form1.elements[i].focus();
				return false;
			}
		}
	}
	return true;
}
function openWindow(theURL,winName,features) { 
  window.open(theURL,winName,features);
}
function print_out() {
   if (navigator.userAgent.match(/msie (\d)/i))
      v = (eval(RegExp.$1) >= 5) ? 1 : 0;
   else if (self.innerWidth)
      v = (eval(navigator.appVersion.charAt(0)) >= 4) ? 1 : 0;
   else v = 0;

   /* print() が使えるブラウザなら印刷を実行 */
   if (v) self.print();
   else alert("お使いのブラウザではこの機能は利用できません");
}
function retUrl_shop(id){
  var str = "shop/"
  str+=id
  str+="/"
	window.location=str;
}
function retUrl_coupon(){
	window.location="coupon.php";
}
function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
}