function NewWindow(theURL,theWindowName){
NewWindow1=window.open(theURL,theWindowName,'toolbar=yes,resizable=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,copyhistory=yes,width=800'  );
  NewWindow1.document.wNew=false;
  NewWindow1.moveTo(50,0);
  NewWindow1.focus();
  return false;
}
//onClick="JavaScript: parent.focus(); return false;"
function JavaWindow(theURL,theWindowName,jWidth,jHeight,jLeft,jTop){
	NewWindow1=window.open(theURL,theWindowName,'toolbar=no,resizable=no,location=no,status=no,menubar=no,scrollbars=no,copyhistory=no,width='+jWidth+',height='+jHeight);
  NewWindow1.document.wNew=false;
	NewWindow1.resizeTo(jWidth+20,jHeight+40);
  NewWindow1.moveTo(jLeft,jTop);
  NewWindow1.focus();
  return false;
}
function ShowP(PicURL){
  im=new Image();
  im.src=PicURL;
  im.load;
  var MoE=1.2;
  JavaWindow('common/showpicture.asp?../'+PicURL,'PictureWindow',im.width*MoE,im.height*MoE,200,200);
  return false;
}
function JW(theURL,theWindowName,jWidth,jHeight,jLeft,jTop){
/*
img=new Image();
	img.src=theURL;
	img.load;
	jWidth=img.Width;
	jHeight=img.Height;
//*/
	NewWindow1=window.open('',theWindowName,'toolbar=no,resizable=no,location=no,status=no,menubar=no,scrollbars=no,copyhistory=no,width=100,height=100');
	NewWindow1.close;
	NewWindow1=window.open(theURL,theWindowName,'toolbar=no,resizable=no,location=no,status=no,menubar=no,scrollbars=no,copyhistory=no,width=100,height=100');
  NewWindow1.document.wNew=false;
//	alert("w="+jWidth+"\nH="+jHeight);
	NewWindow1.resizeTo(jWidth+25,jHeight+70);
  NewWindow1.moveTo(jLeft,jTop);
  NewWindow1.focus();
  return false;
}
  
//onClick="JavaScript: parent.focus(); return false;"
