// JavaScript Document

	///// msgbox
	function ar_msg( msg ) {
	
		ar_full_start();
		
		document.getElementById( 'ar_msgbox_msg' ).innerHTML = msg;
		document.getElementById( 'ar_msgbox' ).style.display = '';
		
		//document.getElementById( 'ar_msgbox' ).style.top = Math.round( document.getElementById( 'ar_msgbox' ).style.height / 2 - 100 ) + 'px';
	
	}
	
	///// msgbox . OK button
	function ar_msg_submit() {
	
		document.getElementById( 'ar_msgbox' ).style.display = 'none';
		
		ar_full_end();
	
	}
	
	///// picBox
	function ar_pic( pic ) {
	
		ar_full_start();
		
		document.getElementById( 'ar_picbox' ).style.display = '';
		document.getElementById( 'ar_picbox_pic' ).innerHTML = '<img src="' + pic + '" />';
		
		//document.getElementById( 'ar_msgbox' ).style.top = Math.round( document.getElementById( 'ar_msgbox' ).style.height / 2 - 100 ) + 'px';
	
	}
	
	///// picBox . OK button
	function ar_pic_submit() {
	
		document.getElementById( 'ar_picbox_pic' ).innerHTML = '';
		document.getElementById( 'ar_picbox' ).style.display = 'none';
		
		ar_full_end();
	
	}
	
	///// fullscreen . start
	function ar_full_start() {
	
		document.getElementById( 'ar_full' ).style.display = '';
		document.getElementById( 'ar_cent' ).style.display = '';
		document.getElementById( 'ar_cent' ).style.zIndex = 900;
	
	}
	
	///// fullscreen . end
	function ar_full_end() {
	
		document.getElementById( 'ar_full' ).style.display = 'none';
		document.getElementById( 'ar_cent' ).style.display = 'none';
	
	}