function openwindow(url,title,x,y,w,h)
{
 var ww,wh;
 if (document.documentElement && document.documentElement.clientWidth)
 {
  ww=document.documentElement.clientWidth;
  wh=document.documentElement.clientHeight;
 }
 else
 {
//  ww=window.innerWidth;
//  wh=window.innerHeight;
 }

 if ((title==null) || (title==''))
 {
  title=document.domain+'_popup';
 }
 if ((w==null) || (w==''))
 {
  w=ww/4;
 }
 if ((h==null) || (h==''))
 {
  h=wh/4;
 }
 if ((x==null) || (x==''))
 {
  x=(ww-w)/2;
 }
 if ((y==null) || (y==''))
 {
  y=(wh-h)/2;
 }
 window.open(url,title,'left='+x+',top='+y+',width='+w+',height='+h);
 return false;
}
