// zipcode form control
function zipcodeview(v) {
	var area = v;
	var id='person_zip_code';

	if(document.all){
		if(area == '000') {
			document.all(id).readOnly = true;
			document.all(id).style.color = '#555';
			document.all(id).value = '000-0000';
		} else {
			document.all(id).readOnly = false;
			document.all(id).style.color = '#000';
			document.all(id).value = '';
		}
	} else if(document.getElementById){
		if(area == '000') {
			document.getElementById(id).readOnly = true;
			document.getElementById(id).style.color = '#555';
			document.getElementById(id).value = '000-0000';
		} else {
			document.getElementById(id).readOnly = false;
			document.getElementById(id).style.color = '#000';
			document.getElementById(id).value = '';
		}
	}

}

var hd="/images/hide.gif"; /* 非表示 */
var sw="/images/show.gif"; /* 非表 */
function menucontrol(id) {
	if(document.all){
		if(document.all(id).style.display == 'block') {
				document.all(id).style.display = 'none';
				document.all('morebtn').style.display = 'block';
				document.all('morebtn2').style.display = 'none';
		} else {
				document.all(id).style.display = 'block';
				document.all('morebtn').style.display = 'none';
				document.all('morebtn2').style.display = 'block';
		}
	} else if (document.getElementById){
		if (document.getElementById(id).style.display == 'block') {
				document.getElementById(id).style.display = 'none';
				document.getElementById('morebtn').style.display = 'block';
				document.getElementById('morebtn2').style.display = 'none';
		} else {
				document.getElementById(id).style.display = 'block';
				document.getElementById('morebtn').style.display = 'none';
				document.getElementById('morebtn2').style.display = 'block';
		}
	}
}

var GuideSentence1 = 'テーマを検索';
var GuideSentence2 = 'アンケートを検索';
function ShowFormGuide(obj,num) {
	// 入力案内を表示
	if( obj.value == '' ) {
		if( num == 1 ) { obj.value = GuideSentence1; }
		if( num == 2 ) { obj.value = GuideSentence2; }
		obj.style.color = '#aaa';
	}
}
function HideFormGuide(obj,num) {
// 入力案内を消す
	if( num == 1 ) {
		if( obj.value == GuideSentence1 ) {
			obj.value='';
			obj.style.color = '#000';
		}
	}
	if( num == 2 ) {
		if( obj.value == GuideSentence2 ) {
			obj.value='';
			obj.style.color = '#000';
		}
	}
}
function mply(num) {
	var parts_html = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="320" height="240" id="FLVPlayer">\
	<param name="movie" value="/flv/player.swf" />\
	<param name="salign" value="lt" />\
	<param name="quality" value="high" />\
	<param name="scale" value="noscale" />\
	<param name="FlashVars" value="&MM_ComponentVersion=1&skinName=/flv/skin&streamName=/flv/audition'+num+'&autoPlay=true&autoRewind=false" />\
	<embed src="/flv/player.swf" flashvars="&MM_ComponentVersion=1&skinName=/flv/skin&streamName=/flv/audition'+num+'&autoPlay=true&autoRewind=false" quality="high" scale="noscale" width="320" height="240" name="FLVPlayer" salign="LT" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\
	</object>';

	document.getElementById('movie-content').innerHTML = parts_html;

}
function winopen(url){
  win=window.open(url,"flash","toolbar=no,location=no,directories=no,scrollbars=yes,status=yes,menubar=no,resizable=yes");
}
function doPost(){
	// set form
	var targetform = document.startform;
	// submit
	targetform.submit();
	// return
	return null;
}
