var totalArraySize = 100;
parent.window.name="mainWindow";
windowArray = new Array(totalArraySize);
winIndex = new Number(0);

function addWindowHandle(windowHandle)
{				
	windowArray[winIndex]=windowHandle;
	winIndex = new Number(winIndex+1);
}				

function refreshAllFrames()
{
	top.location.reload();
}


function refreshAllFramesInNetscape()
{
    var agt=navigator.userAgent.toLowerCase(); 
    var is_nav  = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1)
                && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1)
                && (agt.indexOf('webtv')==-1) && (agt.indexOf('hotjava')==-1));
    if(is_nav)top.location.reload();
}

function closeAll(message)
{				
	for(var i=0;i<totalArraySize;i++)
	{			
		if(windowArray[i] != null && !windowArray[i].closed){

			var objName = windowArray[i].self
			if(typeof windowArray[i].viewFrame != "undefined" ){
				objName=windowArray[i].viewFrame
			}

			if(typeof objName.document.ContentViewer == "undefined"){			
				windowArray[i].close();	
			}else			
			if(objName.document.ContentViewer.isDirty()){
			if(message!=""){
					alert(message)			
					doLogOut = false;	   
					windowArray[i].focus();
					return;
					}
				}	
			windowArray[i].close();    
			}	
	}			
	winIndex = new Number(0);
	doLogOut = true;	
}				


function openNewPage( newurl, newtarget , width , height, toolbar){
		newWindow = window.open(newurl,newtarget,'width='+width+',height='+height+',scrollbars=yes,menubar='+toolbar+',toolbar='+toolbar+',resizable=yes');
		addWindowHandle(newWindow);
}

function refreshTable(){
}

function refreshTree(){
}

function refreshToolbar(){
}

