function popwindow(url,name,status,width,height) {
	//caculate center positon of the new window
     
    status=status+",left="+getLeftPosition(width)+",top="+getTopPosition(height);
    
    newwindow=window.open(url,name,status);
	if (window.focus) {newwindow.focus()}
	
	return false;
}
function getLeftPosition(width)
{
   return (screen.width-width)/2;
   
}

function getTopPosition(height)
{

   return topPosition=(screen.height-height)/2;
   
}

function openNewWindow(url) {
    //caculate center positon of the new window
     
   newwindow=window.open(url);
   if (window.focus) {
       newwindow.focus();    
   }
   return false;
}