window.name="MKDmain";


var v=parseInt(navigator.appVersion);
isNetscape=navigator.appName.indexOf('Netscape')>=0;
isExplorer=navigator.appName.indexOf('Explorer')>=0;
if(v>=3) self.focus();

function popupWindow(goLocation,ww,wh) {
// ww=500;  wh=300;
positionCode='';
if(v>=4) {
sw  = screen.width;           sh  = screen.height;
wbx = Math.round((sw-ww)/2);  wby = Math.round((sh-wh)/2);
if(isExplorer) positionCode='left='+wbx+',top='+wby+',';
if(isNetscape) positionCode='screenX='+wbx+',screenY='+wby+',';
}

newWindow=window.open(goLocation,'MKDpopup',
'width='+ww+',height='+wh+','+
positionCode+
'toolbar=0,'+
'scrollbars=0,'+
'resizable=0');
if(isNetscape && v>=3) newWindow.focus();
}

function runLink(goLocation) {
if(goLocation!='') {
newWindow=window.open(goLocation, "MKDmain");
if(isNetscape) newWindow.focus();
}
//    parent.window.close();
}


function viewPic(picname,ww,hh) {
  positionCode='';
  if (v>=4) {
    sw=screen.width; sh=screen.height;
    wbx=Math.round((sw-ww)/2); wby=Math.round((sh-hh)/2);
    if (isExplorer) positionCode='left='+wbx+',top='+wby+',';
    if (isNetscape) positionCode='screenX='+wbx+',screenY='+wby+',';
  }

  page=window.open("",'','width='+ ww +',height='+ hh +','+positionCode+'toolbar=0,'+'scrollbars=0,'+'resizable=0');
  page.document.open();
pagecode = '<title>CRC computers</title><BODY   topmargin=0 marginheight=0 leftmargin=0 marginwidth=0 bgcolor="#ADAFB2"><img src="'+ picname +'"></BODY>';
page.document.write(pagecode);
page.document.close();
  if (isNetscape && v>=3) newWindow.focus();
}

