
//オープンウインドウ
function OpenWindow( url, width, height, options, name ){
  if(!width) width = 0;
  if(!height) height = 0;
  if(!options) options = "scrollbars=yes,menubar=yes,toolbar=yes,location=yes,status=yes,resizable=yes";
  if(!name) name = "outsideSiteWindow";

  var newWin = window.open( url, name, "width=" + width + ",height=" + height + "," + options );
}

//クローズウインドウ
function CloseWin(){
    window.close();
}

//ウインドウのプリント
function PrintPage(){
	if(document.getElementById || document.layers){
		window.print();		
	}
}

//レイヤーセレクタ
function layer_sellector(targetLayer,nextStyle){

  if (document.all){
  document.all[targetLayer].style.visibility = nextStyle;
  
  }else if (document.layers){
  document.layers[targetLayer].visibility = nextStyle;

  }else if (document.getElementById){
  document.getElementById(targetLayer).style.visibility = nextStyle;  
  
  }
}

//ロードイメージ
function newImage(arg) {
if (document.images) {
rslt = new Image();
rslt.src = arg;
return rslt;
}
}

function changeImages() {
if (document.images && (preloadFlag == true)) {
for (var i=0; i<changeImages.arguments.length; i+=2) {
document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
}
}
}

var preloadFlag = false;

//プレロードイメージ（メニュー）
function preloadImages() {
if (document.images) {

preloadFlag = true;
}
}