function openWin(url,width,height){
	state="width="+ width + ",height="+ height +",scrollbars=yes,resizable=yes";
	window.open(url,"newwindow",state);
}

function cl(){
	window.close();
}

/*ウィンドウ幅チェック*/
function getItemsSize(){
	// IE以外。
	if (!document.all && (document.layers || document.getElementById)) {
	    w=window.innerWidth;
	    h=window.innerHeight;
	    }
	// ウィンドウズIE 6・標準モード。
	else if (document.getElementById && (document.compatMode=='CSS1Compat')) {
	    w=document.documentElement.clientWidth;
	    h=document.documentElement.clientHeight;
	    }
	// その他のIE。
	else if (document.all) {
	    w=document.body.clientWidth;
	    h=document.body.clientHeight;
	    }
	// その他(非対応)。
	else {
	    w=1024;
	    h=800;
	    }
	    
	var Itemsize = new Array(2);
	Itemsize[0] = w;
	Itemsize[1] = h;
	
	return Itemsize;
}

function justResize(){
	size = getItemsSize();
	w = size[0];
	h = size[1];
	
	window.resizeTo(w,h);
}

