function WindowClose(){
	window.close();
}

function WindowOpen(str){
	if ((navigator.userAgent.indexOf("Mac") > -1)){
		if (window.opener){
			window.opener.location.href = str;
			window.opener.focus();
		} else {
			window.open(str,"link01");
		}
	}else{
		if (!window.opener.closed){
			window.opener.location.href = str;
			window.opener.focus();	 
		} else {
			window.open(str,"link01");
		} 
	}

}
