//<!--

var iShift = 0;

function setInitial()
{
   this.name='arnebia_main';
   this.focus();
}

function setNewURL(url)
{
   h_skr = screen.height
   w_win = Math.floor((screen.width-iShift)/1.2);
   h_win = Math.floor(h_skr/2);
   l_win = iShift + Math.floor((screen.width-iShift-w_win)/2);
   t_win = Math.floor((h_skr-h_win)/4);

   winop = window.open(url,"","toolbar=no,status=no,location=no,resizable=yes,scrollbars=yes,menubar=yes,width="+w_win+",height="+h_win+",top="+t_win+",left="+l_win);
}

function setNewURLname(url,name)
{
   h_skr = screen.height
   w_win = Math.floor((screen.width-iShift)/1.2);
   h_win = Math.floor(h_skr/2);

   l_win = iShift + Math.floor((screen.width-iShift-w_win)/2);
   t_win = Math.floor((h_skr-h_win)/4);
		
   winop = window.open(url,name,"toolbar=yes,status=yes,location=yes,resizable=yes,scrollbars=yes,menubar=yes,width="+w_win+",height="+h_win+",top="+t_win+",left="+l_win);
   winop.focus();
}

function setNewURLped(url)
{
   var reg_expr = /\/|\.|\?|\&|\=|\-|\:/g;
   var name = url.replace(reg_expr,"");
   
   width = 550;
   height = 425;
		
   h_skr = screen.height;
   w_skr = screen.width - iShift;
		
   h_win = height;
   if (h_skr < h_win ) {h_win = h_skr;}

   w_win = width;
   if (w_skr < w_win ) {w_win = w_skr;}
		
   l_win = iShift + Math.floor((w_skr-w_win)/1.7);
   t_win = Math.floor((h_skr-h_win)/4);
		
   winop = window.open(url,name,"toolbar=no,status=no,location=no,resizable=yes,scrollbars=yes menubar=yes,width="+w_win+",height="+h_win+",top="+t_win+",left="+l_win);
   winop.focus();
}

function startSHOP (url_str) {
   document.location.href='index.cgi?' + url_str;
};

function ChangeRowsOnPage (url_str) {
   var ssize=document.ChangeRows.ssize.value;
   document.location.href=url_str + '&ssize=' + ssize;
}

function setDownLoad(url,name)
{
   width = 260;
   height = 140;
		
   h_skr = screen.availHeight;
   w_skr = screen.availWidth;
		
   h_win = height;
   if (h_skr < h_win ) {h_win = h_skr;}

   w_win = width;
   if (w_skr < w_win ) {w_win = w_skr;}
		
   l_win = Math.floor((w_skr-w_win)/2);
   t_win = Math.floor((h_skr-h_win)/2);
		
   winop = window.open(url,name,"toolbar=no,status=no,location=no,resizable=yes,scrollbars=no,menubar=no,width="+w_win+",height="+h_win+",top="+t_win+",left="+l_win);
   winop.focus();
}

//-->
