﻿
var oProgressLayer=null;
/************************************************************************************************
// wait
*************************************************************************************************/
function SetBusy()
{
    for(var iCnt=0;iCnt<document.all.length;iCnt++)
    {
        try{document.all[iCnt].oldCursor=document.all[iCnt].style.cursor;
        document.all[iCnt].style.cursor='wait';}catch(e){;}
        try{document.all[iCnt].oldonmousedown=document.all[iCnt].onmousedown;
        document.all[iCnt].onmousedown=function(){return false;}}catch(e){;}
        try{document.all[iCnt].oldonclick=document.all[iCnt].onclick;
        document.all[iCnt].onclick=function(){return false;}}catch(e){;}
        try{document.all[iCnt].oldonmouseover=document.all[iCnt].onmouseover;
        document.all[iCnt].onmouseover=function(){return false;}}catch(e){;}
        try{document.all[iCnt].oldonmousemove=document.all[iCnt].onmousemove;
        document.all[iCnt].onmousemove=function(){return false;}}catch(e){;}
        try{document.all[iCnt].oldonkeydown=document.all[iCnt].onkeydown;
        document.all[iCnt].onkeydown=function(){return false;}}catch(e){;}
        try{document.all[iCnt].oldoncontextmenu=document.all[iCnt].oncontextmenu;
        document.all[iCnt].oncontextmenu=function(){return false;}}catch(e){;}
        try{document.all[iCnt].oldonselectstart=document.all[iCnt].onselectstart;
        document.all[iCnt].onselectstart=function(){return false;}}catch(e){;}
    } 
}
/************************************************************************************************
// Release Wait
*************************************************************************************************/
function ReleaseBusy()
{
    for(var iCnt=0;iCnt<document.all.length;iCnt++)
    {
        try{document.all[iCnt].style.cursor=document.all[iCnt].oldCursor;}catch(e){;}
        try{document.all[iCnt].onmousedown=document.all[iCnt].oldonmousedown;}catch(e){;}
        try{document.all[iCnt].onclick=document.all[iCnt].oldonclick;}catch(e){;}
        try{document.all[iCnt].onmouseover=document.all[iCnt].oldonmouseover;}catch(e){;}
        try{document.all[iCnt].onmousemove=document.all[iCnt].oldonmousemove;}catch(e){;}
        try{document.all[iCnt].onkeydown=document.all[iCnt].oldonkeydown;}catch(e){;}
        try{document.all[iCnt].oncontextmenu=document.all[iCnt].oldoncontextmenu;}catch(e){;}
        try{document.all[iCnt].onselectstart=document.all[iCnt].oldonselectstart;}catch(e){;}
    }
}
/************************************************************************************************
// Hide 

*************************************************************************************************/
function HideProgressInfo()
{
    if(oProgressLayer)
    {
        //ReleaseBusy();
        oProgressLayer.removeNode(true);
        oProgressLayer=null;
    }
}
document.write('<div id="msgObj" class="msgDiv" style="visibility:hidden;"><img id="msgimg" src="/images/ajax_run.gif" ></img><p>ただいま検索中...</p></div>');
function ShowProgressInfo()
{
	var ver=navigator.appVersion  
	var dom=document.getElementById?1:0  
	var ie7=(ver.indexOf("MSIE 7")>-1 && dom)?1:0; 
	var ie6=(ver.indexOf("MSIE 6")>-1 && dom)?1:0;  
	
	var msgObj=document.getElementById('msgObj');

    oProgressLayer=document.createElement('DIV');
    if(ie6) 
	{
		ifrm=document.createElement('iframe');
		ifrm.className='overf';
		ifrm.height=  window.screen.availHeight+'px';
		ifrm.style.marginTop=-(document.documentElement.scrollTop+document.body.scrollTop)+'px';
    }
    oProgressLayer.className='overd';
    oProgressLayer.style.marginTop=-(document.documentElement.scrollTop+document.body.scrollTop)+'px';
    oProgressLayer.height=  window.screen.availHeight+'px';
    var ht= document.body.scrollHeight;

    oProgressLayer.innerHTML='<table border="0" cellspacing="0" cellpadding="0" width="100%"><tr><td align="center" valign="top" height="'+ht+'px">&nbsp;</td></tr></table>';
    oProgressLayer.style.top=document.documentElement.scrollTop+document.body.scrollTop+'px';
   // msgObj=document.createElement('DIV');
    msgObj.className='msgDiv';
	msgObj.style.left=(window.screen.availWidth-420)/2+'px';
	msgObj.style.marginTop = 175+document.documentElement.scrollTop+document.body.scrollTop + "px";
	//msgObj.innerHTML='<img src="/images/ajax_run.gif"><p>ただいま検索中...</p>';
	
	if(ie6) 
	{
		oProgressLayer.appendChild(ifrm);
	}
	msgObj.style.visibility='visible';
    document.body.appendChild(oProgressLayer);
    document.body.appendChild(msgObj);
	
	
}

function ShowLogined()
{

	var ifrm=document.createElement('iframe');
    ifrm.className='overd';
    ifrm.height=  window.screen.availHeight;
    ifrm.src='\include\Flogined.htm';
    document.body.appendChild(ifrm);
}
function PupLogined()
{
document.write('<iframe left=0 top=0 width="100%" src=/include/Flogined.htm scrolling="No" ></iframe>');

}