function add_alert() { if (confirm("追加してよろしいですか？")){ return true; }else{ return false; } }
function chg_alert() { if (confirm("更新してよろしいですか？")){ return true; }else{ return false; } }
function del_alert(){ if (confirm("削除してよろしいですか？")){ return true; }else{ return false; } }
function msg_alert(msg){ if (confirm(msg)){ return true; }else{ return false; } }
function cache_rand(){ now = new Date(); cache_time = new Date(now.getYear(),now.getMonth(),now.getDay()); return cache_time.getTime(); }
function menu_chg(id, pic){  document.getElementById(id).src = pic+'?'+cache_rand(); }
try{ if( navigator.appVersion.indexOf("MSIE 6",0) != -1) document.execCommand('BackgroundImageCache', false, true); } catch(e) {} 
function smartPhoneSwitch(){
	if(GetCookie("smartPhoneSwitch")){ DeleteCookie("smartPhoneSwitch"); }else{ SetCookie("smartPhoneSwitch", "1"); }
	window.location.reload();
}
function dtvSwitch(){
	if(GetCookie("dtvSwitch")){ DeleteCookie("dtvSwitch"); }else{ SetCookie("dtvSwitch", "1"); }
	window.location.reload();
}

