<!--
function cText(obj){
	if(obj.value==obj.defaultValue){
		obj.value="";
		obj.style.color="#333";
	}
}

function sText(obj){
	if(obj.value==""){
		obj.value=obj.defaultValue;
		obj.style.color="#999";
	}
}

yst_timer = setInterval('YstTabInit()', 50);

function YstTabInit(){
	if(document.getElementById("act2")){
		if(document.getElementById('act').value == 'www.t-com.ne.jp'){
			ChangeFormAction('domain','');
			clearInterval(yst_timer);
		}else if(document.getElementById('act').value != ''){
			ChangeFormAction(document.getElementById('act').value,'');
			clearInterval(yst_timer);
		}
		if(document.getElementById('act2').value == 'www.t-com.ne.jp'){
			ChangeFormAction('domain','2');
			clearInterval(yst_timer);
		}else if(document.getElementById('act2').value != ''){
			ChangeFormAction(document.getElementById('act2').value,'2');
			clearInterval(yst_timer);
		}
	}
}

function ChangeFormAction(str,n)
{
    var arr = new Array();
    arr[0] = 'web';
    arr[1] = 'image';
    arr[2] = 'movie';
    arr[3] = 'domain';
    arr[4] = 'goods';
	
	if(str == ''){
		str = 'web';
	}
    for (i = 0; i < arr.length; i++) {
		if(document.getElementById(arr[i] + '_txt' + n) != null){
			if ( arr[i] == str ) {
				document.getElementById(arr[i] + '_txt' + n).style.fontWeight = 'bold';
				document.getElementById(arr[i] + '_txt' + n).style.color = '#000';
				document.getElementById(arr[i] + '_txt' + n).style.background = 'url(./jwd_img/arrow.gif) no-repeat 50% 0';
			} else {
				document.getElementById(arr[i] + '_txt' + n).style.fontWeight = 'normal';
				document.getElementById(arr[i] + '_txt' + n).style.color = '#2368cc';
				document.getElementById(arr[i] + '_txt' + n).style.background = 'none';
			}
		}
    }

    if (str == 'movie') {
        document.getElementById('act' + n).name  = 'act';
        document.getElementById('act' + n).value = 'movie';
    } else if (str == 'image') {
        document.getElementById('act' + n).name  = 'act';
        document.getElementById('act' + n).value = 'image';
    } else if (str == 'domain') {
        document.getElementById('act' + n).name  = 'domain';
		document.getElementById('act' + n).value = 'www.t-com.ne.jp';
    } else if (str == 'goods') {
        document.getElementById('act' + n).name  = 'act';
		document.getElementById('act' + n).value = 'goods';
    } else {
        document.getElementById('act' + n).name  = '';
        document.getElementById('act' + n).value = '';
    }
}
//-->
