/*------------------------------------

	入力中のフォームの色の変更

------------------------------------*/
function bgcOver(element) {
	element.style.backgroundColor = '#eeefe5';
}
function bgcOut(element) {
	element.style.backgroundColor = '#fff';
}
/*------------------------------------

	OPEN WINDOW

------------------------------------*/
function win_op(op_url){
	window.open(op_url,"","resizable=yes,scrollbars=yes");
}
function wo(op_url){
	window.open(op_url,"","");
}

function getA(idName) {
	var x = document.getElementById(idName).getElementsByTagName('a');
	for (var i=0; i<x.length; i++) {
		x[i].onclick = function () { return openWin(this.href); }
		x[i].onkeypress = function () { return openWin(this.href); }
	}
}

function openWin(target) {
	newWin = open(target, "", "resizable=yes,scrollbars=yes,width=" + window.screen.width + ",height=" + window.screen.height);
	newWin.moveTo(0,0);
	newWin.focus();
	return false; 
}

/*------------------------------------
	graphic
------------------------------------*/
function bgChange(value) {
	var str = document.getElementById('contentBox').getElementsByTagName('dd');
	for(var i=0; i<str.length; i++) {
		str[i].style.backgroundColor = value;;
	}
}
function wpChange(idName,filename) {
	if(!document.getElementById(idName)) {
		return false;
	}
	document.getElementById(idName).style.backgroundImage='url('+filename+')';
}
function wpClean(idName) {
	if(!document.getElementById(idName)) {
		return false;
	}
	document.getElementById(idName).style.backgroundImage='none';
}
/*------------------------------------
script
------------------------------------*/
function g9(){
    window.open("material/script/gallery9/index.php","g9","scrollbars=yes");
}
function g9admin(){
    window.open("material/script/gallery9/admin.php","g9ad","scrollbars=yes");
}
function g_plus(){
    window.open("material/script/gallery+/index.php","g_plus","scrollbars=yes");
}
function pmskin(){
    window.open("material/script/sample/samplemf03.htm","pmskin","scrollbars=yes");
}
function smfskin1(){
    window.open("material/script/sample/samplemf01.htm","smfskin1","scrollbars=yes");
}
function smfskin2(){
    window.open("material/script/sample/samplemf02.htm","smfskin2","scrollbars=yes");
}



/*------------------------------------
photo
------------------------------------*/
function middle(){
    window.open("material/photo/01.php","middle","width=450,height=310");
}
function middle2(){
    window.open("material/photo/02.php","middle2","width=450,height=210");
}
function middle3(){
    window.open("material/photo/03.php","middle3","width=400,height=470");
}
function small(){
    window.open("material/photo/04.php","small","width=420,height=360");
}
function wide(){
    window.open("material/photo/w600.php","wide","width=640,height=220");
}
function clip(){
    window.open("material/photo/clip.php","clip","width=450,height=510");
}
function leaf(){
    window.open("material/photo/leaf.htm","leaf","width=350,height=390");
}
function eq01(){
    window.open("material/photo/eq500.php","eq01","width=540,height=450");
}
function furn01(){
    window.open("material/photo/furniture01.php","furn01","width=640,height=260");
}
function furn02(){
    window.open("material/photo/furniture02.php","furn02","width=390,height=470");
}
function other600(){
    window.open("material/photo/other600.php","other600","width=640,height=270");
}
function eames01(){
    window.open("material/photo/eames01.php","eames01","width=350,height=480");
}
function w700(){
    window.open("material/photo/700x210.php","w700","width=740,height=280");
}
/*------------------------------------
auction plate
------------------------------------*/
function open_win1(){
    window.open("material/ya/sample01.htm","new1","scrollbars=yes");
}
function open_win2(){
    window.open("cgi/yacform.htm","new2","scrollbars=yes");
}
function open_win3(){
    window.open("material/ya/sample02.htm","new3","scrollbars=yes");
}
function open_win4(){
    window.open("cgi/yacform2.htm","new4","scrollbars=yes");
}
function open_win5(){
    window.open("material/ya/sample03.htm","new5","scrollbars=yes");
}
function open_win6(){
    window.open("cgi/yacform3.htm","new6","scrollbars=yes");
}
/*------------------------------------

	WINDOW CLOSE

------------------------------------*/
function CloseWin(){
    window.close();
}