﻿function searchHTMLFile(url){var urlCash = url + "?"+(new Date()).getTime();new Ajax.Request(urlCash, { method: 'get', onComplete: displayData });}function displayData(httpObj) {$("dispArea").innerHTML = colorCheck(httpObj.responseText);}function colorCheck(htmlText) {	var resultText = htmlText ;	var found = false;	if ((htmlText.match('ダーク')) && $("color7").checked) {found = true;}	if ((htmlText.match('ワイン')) && $("color8").checked) {found = true;}	if ((htmlText.match('ナチュ')) && $("color9").checked) {found = true;}	if ((htmlText.match('ホワイト')) && $("color1").checked) {found = true;}	if ((htmlText.match('ブラック')) && $("color2").checked) {found = true;}	if ((htmlText.match('ピンク')) && $("color3").checked) {found = true;}	if ((htmlText.match('グリーン')) && $("color4").checked) {found = true;}	if ((htmlText.match('ブルー')) && $("color5").checked) {found = true;}	if ((htmlText.match('レッド')) && $("color6").checked) {found = true;}	if ($("test").checked) {found = true;}	if (found != false) {		resultText += '<embed src="soundOn.mp3"  hidden="true" play="true" loop="false" autostart="true" width="1" height="1" volume="100"></embed>' ;	}	return resultText ;}