function popup(win,name,pro) 
{ 
	var pro = pro.split("=")
	pro = pro[0] +"=" + pro[1] + "=" + (parseInt(pro[2]) + 20)
	var a = window.open(win,'name',pro + ", status=yes");
	pro = pro.replace("width=","")
	pro = pro.replace("height=","")
	pro = pro.split(",")
	var w = parseInt(pro[0])
	var h = parseInt(pro[1])
	a.resizeTo(w,h)
	a.focus()
 }

function popup2(win,name,pro) 
{ 
	var b = window.open(win,name,pro); 
	b.focus(); 
}

function checkOS() {
  if(navigator.userAgent.indexOf('IRIX') != -1)
    { var OpSys = "Irix"; }
  else if((navigator.userAgent.indexOf('Win') != -1) &&
  (navigator.userAgent.indexOf('95') != -1))
    { var OpSys = "Windows95"; }
  else if(navigator.userAgent.indexOf('Win') != -1)
    { var OpSys = "Windows3.1 or NT"; }
  else if(navigator.userAgent.indexOf('Mac') != -1)
    { var OpSys = "Macintosh"; }
  else { var OpSys = "other"; }
  return OpSys;
}

