// window Java Document

<!--

function popUp(URLStr, left, top, width, height) {
  window.open(URLStr, null, 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}

function popUp_scroll(URLStr, left, top, width, height) {
  window.open(URLStr, null, 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}

function popUp_toolbar(URLStr, left, top, width, height) {
  window.open(URLStr, '', 'toolbar=yes,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}

function popUp_menubar(URLStr, left, top, width, height) {
  window.open(URLStr, '', 'toolbar=no,location=no,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}

function newWindow(URLStr, left, top, width, height) {	
 window.open(URLStr, '', 'toolbar=yes,location=no,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');  
}



function windowHeight() {
	
  var height = 0;
  
  if( typeof( window.innerWidth ) == 'number' ) {
	//Non-IE
	height = window.innerHeight;
	
  } 
  else if( document.documentElement &&
	  ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
	  
	//IE 6+ in 'standards compliant mode'
	height = document.documentElement.clientHeight;
	
  } 
  else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
	  
	//IE 4 compatible
	height = document.body.clientHeight;
	
  }
  
 return height;
  
}

function windowWidth() {
	
  var width = 0;
  
  if( typeof( window.innerWidth ) == 'number' ) {
	//Non-IE
	width = window.innerWidth;
	
  } 
  else if( document.documentElement &&
	  ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
	  
	//IE 6+ in 'standards compliant mode'
	width = document.documentElement.clientWidth;
	
  } 
  else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
	  
	//IE 4 compatible
	width = document.body.clientWidth;
	
  }
  
  return width;
  
}

function resizeWindow(width, height) {
  
  if( typeof( window.innerWidth ) == 'number' ) {
	//Non-IE
	window.innerWidth = width;
	window.innerHeight = height;
	
  } 
  else {
	  
	//IE 6+ in 'standards compliant mode'
	self.resizeTo(width, height);
	
  }
  
}

function screenHeight() {
	
	var height = -1;
  
  	if (document.all) { 
		height = screen.availHeight;
	} 
	else if (document.layers || document.getElementById) { 
	
		if (top.window.outerHeight < screen.availHeight || 
			top.window.outerWidth < screen.availWidth) { 
		
			height = top.screen.availHeight;
		
		}
	}
	
	return height;
	   
}

function screenWidth() {
	
	var width = -1;
  
  	if (document.all) { 
		width = screen.availWidth;
	} 
	else if (document.layers || document.getElementById) { 
	
		if (top.window.outerHeight < screen.availHeight || 
			top.window.outerWidth < screen.availWidth) { 
		
			width = top.screen.availWidth;
		
		}
	}
	
	return width;
	   
}

function resizeScreen(width, height) {
	
	if (document.all) { 
		top.window.resizeTo(width, height);
	} 
	else if (document.layers || document.getElementById) { 
	
		if (top.window.outerHeight < screen.availHeight || 
			top.window.outerWidth < screen.availWidth) { 
		
			top.window.outerHeight = height; 
			top.window.outerWidth = width;
		
		}
	}
	   
}

function maximizeWindow() {

	top.window.moveTo(0,0); 
	
	if (document.all) { 
		top.window.resizeTo(screen.availWidth,screen.availHeight);
	} 
	else if (document.layers || document.getElementById) { 
	
		if (top.window.outerHeight < screen.availHeight || 
			top.window.outerWidth < screen.availWidth) { 
		
			top.window.outerHeight = top.screen.availHeight; 
			top.window.outerWidth = top.screen.availWidth;
		
		}
	}
	   
}