function OpenWindow( File ){
	var Att = "toolbar=no,location=no,status=yes,menubar=yes,scrollbars=yes,resizable=no,width=600,height=450";
	window.open( File, "", Att );
}

function OpenSmall( File ){
	var Att = "toolbar=no,location=no,status=yes,menubar=0,scrollbars=0,resizable=no,width=200,height=150";
	window.open( File, "", Att );
}

function OpenMedium( File ){
	var Att = "toolbar=no,location=no,status=yes,menubar=0,scrollbars=0,resizable=no,width=400,height=300";
	window.open( File, "", Att );
}

function OpenHigh( File ){
	var Att = "toolbar=no,location=no,status=yes,menubar=0,scrollbars=1,resizable=no,width=600,height=640";
	window.open( File, "", Att );
}

function OpenWide( File ){
	var Att = "toolbar=no,location=no,status=no,menubar=0,scrollbars=yes,resizable=no,width=600,height=300";
	window.open( File, "coments", Att );
}

function OpenHigh2( File ){
	var Att = "toolbar=no,location=no,status=yes,menubar=0,scrollbars=0,resizable=no,width=420,height=590";
	window.open( File, "", Att );
}

function OpenAndante( File ){
	var Att = "toolbar=no,location=no,status=yes,menubar=no,scrollbars=no,resizable=no,width=320,height=280";
	window.open( File, "", Att );
}

function AndantePreLoad( Start, End ){
	img = new Array();
	for( i = Start; i <= End; i++ ){
		img[i] = new Image();
		if( i <= 9 ){	img[i].src = "pic/0" + i + ".jpg";	}
		else{		img[i].src = "pic/" + i + ".jpg";	}
	}
}

function AndanteScroll( SNum, FNum ){
	strtPos = SNum * 320;// + SNum;
	finPos = FNum * 320;// + FNum;
	spd = 5;
	if( SNum < FNum ){
		for( i = strtPos; i <= finPos; i += spd ){	scroll(i, 0);	}
	}
	else{
		for( i = strtPos; i >= finPos; i -= spd ){	scroll(i, 0);	}
	}
}

function scrollertp(){
	scroll(0,0);
}

function scrollerleft(finPos, strtPos, spd){
	for( i = strtPos; i <= finPos; i += spd ){	scroll(i, 0);	}
}

function scrollerright(finPos, strtPos, spd){
	for( i = strtPos; i >= finPos; i -= spd ){	scroll(i, 0);	}
}

function Open_bbs_SubWin(action, target){
	var op_window = null;
	var width = 350;
	var height = 200;
	var url = '?' + action + target;
	var name = 'bbs_op';
	op_window = window.open( url, name, "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,copyhistory=0,width=" + width + ",height=" + height );
	op_window.focus();
}
