// JavaScript Document
function leftPosition(width) 
{  
 var left,width; 
 if(document.body.clientWidth<width)left = 0; 
 else left = (document.body.clientWidth-width)/2; 
 return left; 
}  
function topPosition(height) 
{  
 var top,height; 
 if(document.body.clientHeight<height)top = 0; 
 else top = (document.body.clientHeight-height)/2; 
 return top; 
}