// JavaScript Document
popup_small=function(url,height,width,options){  
  var options =options || {};
  
  if(screen.availHeight && screen.availWidth){
    var ah=screen.availHeight-30;
    var aw=screen.availWidth-10;
  }else{
	var ah=708; 
	var aw=1014;	
  }  
  if(height==undefined){	
    height=600;
  }
  if(width==undefined){	
    width=700;
  }  
		
  var xc = (aw - 500) / 2;
  var yc = (ah - 500) / 2;
  
  // configs
  var resizable  =(options.resizable!=undefined && options.resizable=="N")?0:1;
  var scrollbars =options.scrollbars || 1;
  var winProp='toolbar=0, menubar=0, resizable='+resizable+', scrollbars='+scrollbars+', dependent=0, status=0,';      
      winProp+=' width='+width+', height='+height+',left=' + xc + ', top=' + yc;  	
    
  var new_window = window.open(url, 'new_window', winProp);
  if(new_window && new_window.focus){
    new_window.focus();
  }
}

popup_fullscreen=function(url){   
  if(screen.availHeight && screen.availWidth){
    var ah=screen.availHeight-30;
    var aw=screen.availWidth-10;
  }else{
	var ah=708; 
	var aw=1014;	
  }  
  	
  height=screen.availHeight;  
  width=screen.availWidth;
  	
  var xc = (aw - 500) / 2;
  var yc = (ah - 500) / 2;
  
  var winProp='toolbar=0, menubar=0, location=0, resizable=0, scrollbars=1, dependent=0, status=0,';      
      winProp+=' width='+width+', height='+height+',left=' + xc + ', top=' + yc;
  	
    
  var lock_window = window.open(url, 'lock_window', winProp);
  if(lock_window && lock_window.focus){
    lock_window.focus();
  }
}