function btype() {
 if(document.all) 
 { // IE4 or 5
   document.write('<td width="8" background="../images/right.gif">&nbsp;</td>');
 } else if(window.screen) 
   { // Netscape 4.x, screen available
     document.write('<td width="8" background="../images/right3.gif">&nbsp;</td>');
   } else 
     { // set some default options for other people
       document.write('<td width="8" background="../images/right3.gif">&nbsp;</td>');
     }  
}

function MM_displayStatusMsg(msgStr) { //v1.0
  status=msgStr;
  document.MM_returnValue = true;
}

function opennew(url)
{
  disWindow=window.open(url,"popup","toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1,screenX=200,screenY=200,height=700,width=810");
  document.location.reload()
}

function opennewpars(url,w,h,x,y)
{
  disWindow=window.open(url,"popup","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,screenX=" + x +",screenY=" + y + ",height=" + h + ",width=" + w + ",top=" + y + ",left=" + x);
  document.location.reload()
}

function openpic(url,name) {
 var myWindowOptions;
 if(document.all) 
 { // IE4 or 5
   myWindowOptions = "fullscreen=yes";
 } else 
   { // all the rest
     myWindowOptions = "status=no, dialog=no, resizable=yes, width=" + screen.availWidth + ",height=" + screen.availHeight + ",screenX=0,screenY=0";
   } 
     window.open(url,name,myWindowOptions);
     document.location.reload()
} 

function rnd_image() {
var images = new Array(
'../images/top_a.jpg',
'../images/top_b.jpg',
'../images/top_c.jpg',
'../images/top_d.jpg',
'../images/top_e.jpg',
'../images/top_f.jpg',
'../images/top_g.jpg',
'../images/top_h.jpg',
'../images/top_i.jpg',
'../images/top_j.jpg',
'../images/top_l.jpg',
'../images/top_m.jpg',
'../images/top_n.jpg',
'../images/top_o.jpg',
'../images/top_p.jpg',
'../images/top_q.jpg',
'../images/top_r.jpg',
'../images/top_s.jpg',
'../images/top_t.jpg',
'../images/top_u.jpg',
'../images/top_v.jpg',
'../images/top_z.jpg',
'../images/top_x.jpg',
'../images/top_y.jpg',
'../images/top_aa.jpg'
);
var randomIndex = Math.floor(images.length * Math.random());
document.write('<IMG SRC="' + images[randomIndex] + '" width="750" height="167">');
}

