function setParam(){
	var sea_length = location.search.length;
	var equal_chara = location.search.indexOf("?")+1;
	var result = unescape(location.search.substring(equal_chara,sea_length));
	return result;
}

function openLink(myURL,myName){
	var w = window.open(myURL,myName);
	try {
		if(w.location.href == "about:blank") {
			 w.location.href = myURL;
		} else {
			w.focus();
		}
			} catch(e) {
				w.focus();
		}
}

function openWin(myURL,myW,myH,myName){
	var scWidthCenter=screen.availWidth/2;
	var scHeightCenter=screen.availHeight/2;
	option="toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width="+myW+",height="+myH+",left="+(scWidthCenter-(myW/2))+",top="+(scHeightCenter-(myH/2));
	var newWin=window.open(myURL,myName,option);
	newWin.window.focus();
}

function quit(){
	window.close();
}
