
//検索窓デフォルトテキスト配置

function cText(obj){
if(obj.value==obj.defaultValue){
obj.value="";
obj.style.color="#000";
}
}

function sText(obj){
if(obj.value==""){
obj.value=obj.defaultValue;
obj.style.color="#999";
}
}



//フッターコピーライト
function footer_copy(){

cp=new Date();
now=cp.getFullYear();
document.write('<p class="copyright">All rights reserved. Copyright (C) '+now+' BioBankJapan</p>');
}

//<p class="copyright">All rights reserved. Copyright (C) 1999-'+now+' BioBankJapan</p>



//シンポジウムページ　ポップアップウィンドウ
function opw_00(){window.open("win_00.html","sympo00","width=560,height=450,directories=0,location=0,menubar=0,scrollbars=auto,status=0,toolbar=0,resizable=0,left=0,top=0");}
function opw_01(){window.open("win_01.html","sympo01","width=560,height=450,directories=0,location=0,menubar=0,scrollbars=auto,status=0,toolbar=0,resizable=0,left=0,top=0");}
function opw_02(){window.open("win_02.html","sympo02","width=560,height=450,directories=0,location=0,menubar=0,scrollbars=auto,status=0,toolbar=0,resizable=0,left=0,top=0");}
function opw_03(){window.open("win_03.html","sympo03","width=560,height=450,directories=0,location=0,menubar=0,scrollbars=auto,status=0,toolbar=0,resizable=0,left=0,top=0");}
function opw_04(){window.open("win_04.html","sympo04","width=560,height=450,directories=0,location=0,menubar=0,scrollbars=auto,status=0,toolbar=0,resizable=0,left=0,top=0");}
function opw_05(){window.open("win_05.html","sympo05","width=560,height=450,directories=0,location=0,menubar=0,scrollbars=auto,status=0,toolbar=0,resizable=0,left=0,top=0");}
function opw_06(){window.open("win_06.html","sympo06","width=560,height=450,directories=0,location=0,menubar=0,scrollbars=auto,status=0,toolbar=0,resizable=0,left=0,top=0");}
function opw_07(){window.open("win_07.html","sympo07","width=560,height=450,directories=0,location=0,menubar=0,scrollbars=auto,status=0,toolbar=0,resizable=0,left=0,top=0");}
function opw_08(){window.open("win_08.html","sympo08","width=560,height=450,directories=0,location=0,menubar=0,scrollbars=auto,status=0,toolbar=0,resizable=0,left=0,top=0");}
function opw_09(){window.open("win_09.html","sympo09","width=560,height=450,directories=0,location=0,menubar=0,scrollbars=auto,status=0,toolbar=0,resizable=0,left=0,top=0");}
function opw_10(){window.open("win_10.html","sympo10","width=560,height=450,directories=0,location=0,menubar=0,scrollbars=auto,status=0,toolbar=0,resizable=0,left=0,top=0");}
function opw_11(){window.open("win_11.html","sympo11","width=560,height=450,directories=0,location=0,menubar=0,scrollbars=auto,status=0,toolbar=0,resizable=0,left=0,top=0");}
function opw_12(){window.open("win_12.html","sympo12","width=560,height=450,directories=0,location=0,menubar=0,scrollbars=auto,status=0,toolbar=0,resizable=0,left=0,top=0");}
function opw_13(){window.open("win_13.html","sympo13","width=560,height=450,directories=0,location=0,menubar=0,scrollbars=auto,status=0,toolbar=0,resizable=0,left=0,top=0");}
function opw_14(){window.open("win_14.html","sympo14","width=560,height=450,directories=0,location=0,menubar=0,scrollbars=auto,status=0,toolbar=0,resizable=0,left=0,top=0");}
function opw_15(){window.open("win_15.html","sympo15","width=560,height=450,directories=0,location=0,menubar=0,scrollbars=auto,status=0,toolbar=0,resizable=0,left=0,top=0");}
function opw_16(){window.open("win_16.html","sympo16","width=560,height=450,directories=0,location=0,menubar=0,scrollbars=auto,status=0,toolbar=0,resizable=0,left=0,top=0");}
function opw_17(){window.open("win_17.html","sympo17","width=560,height=450,directories=0,location=0,menubar=0,scrollbars=auto,status=0,toolbar=0,resizable=0,left=0,top=0");}
function opw_18(){window.open("win_18.html","sympo18","width=560,height=450,directories=0,location=0,menubar=0,scrollbars=auto,status=0,toolbar=0,resizable=0,left=0,top=0");}
function opw_19(){window.open("win_19.html","sympo19","width=560,height=450,directories=0,location=0,menubar=0,scrollbars=auto,status=0,toolbar=0,resizable=0,left=0,top=0");}
function opw_20(){window.open("win_20.html","sympo20","width=560,height=450,directories=0,location=0,menubar=0,scrollbars=auto,status=0,toolbar=0,resizable=0,left=0,top=0");}
function opw_21(){window.open("win_21.html","sympo21","width=560,height=450,directories=0,location=0,menubar=0,scrollbars=auto,status=0,toolbar=0,resizable=0,left=0,top=0");}
function opw_22(){window.open("win_22.html","sympo22","width=560,height=450,directories=0,location=0,menubar=0,scrollbars=auto,status=0,toolbar=0,resizable=0,left=0,top=0");}
function opw_23(){window.open("win_23.html","sympo23","width=560,height=450,directories=0,location=0,menubar=0,scrollbars=auto,status=0,toolbar=0,resizable=0,left=0,top=0");}
function opw_24(){window.open("win_24.html","sympo24","width=560,height=450,directories=0,location=0,menubar=0,scrollbars=auto,status=0,toolbar=0,resizable=0,left=0,top=0");}
function opw_25(){window.open("win_25.html","sympo25","width=560,height=450,directories=0,location=0,menubar=0,scrollbars=auto,status=0,toolbar=0,resizable=0,left=0,top=0");}

////////////////////////////////////////////////////////////
//
// input、textareaの初期値を自動でクリアする
//

/* clearDefaultValue
----------------------------------------*/
function ClearDefaultValue(){
	var input = document.getElementsByTagName("input");
	var textarea = document.getElementsByTagName("textarea");

	/* input */
	for (i=0;i<input.length;i++){
		if((input[i].getAttribute("type") == "text")||(input[i].getAttribute("type") == null)){
			if (input[i].value == input[i].defaultValue){
				input[i].className += " default-value"
			}
			input[i].onfocus = function(){
				if (this.value == this.defaultValue){
					this.value = "";
					this.className = this.className.replace(/ default-value/, "");
				}
			}
			input[i].onblur = function(){
				if (this.value == ""){
					this.value = this.defaultValue;
					this.className += " default-value"
				}
			}
		}
	}
	/* textarea */
	for (i=0;i<textarea.length;i++){
		if (textarea[i].value == textarea[i].defaultValue){
			textarea[i].className += " default-value"
		}
		textarea[i].onfocus = function(){
			if (this.value == this.defaultValue){
				this.value = "";
				this.className = this.className.replace(/ default-value/, "");
			}
		}
		textarea[i].onblur = function(){
			if (this.value == ""){
				this.value = this.defaultValue;
				this.className += " default-value"
			}
		}
	}	
}

addEvent(window, 'load', ClearDefaultValue);

/* add event
----------------------------------------*/

function addEvent(obj, evType, fn){
	if (obj.addEventListener){
		obj.addEventListener(evType, fn, false);
		return true;
	}
	else if (obj.attachEvent){
		var r = obj.attachEvent("on"+evType, fn);
		return r;
	}
	else {
		return false;
	}
}

