/******************************************
 *** File 	: JS Home.js
 *** Author 	: Shan 
 *** Date	: July 27, 2008
 ******************************************/
 
var winheight=100
var winwidth=150
var pop=null
step=1;

/*******************************************
 ** Desc : This function is used to do a 
 ** 	   Smooth Transition to the popup
 **
 *******************************************/
function popswindows(url,name,width,height) 
{
//alert(width + " : " + height);

winheight = height;
winwidth  = width;

if (!document.all)
 {
  if (!document.layers)
   {
    paramstp="height="+height+",width="+width+",top=10"+
    ",left=10,scrollbars=yes,location=no"+
    ",directories=no,status=no,menubar=no,toolbar=no,resizable=no"
    
    pop=window.open(url,name,paramstp);
    
    if (pop.focus){pop.focus();}
    	return;
    }
   else
   {
    LeftPosition=(screen.width)?(screen.width-width)/2:100;
    TopPosition=(screen.height)?(screen.height-height)/2:100;
    paramstp="height="+height+",width="+width+",top="+TopPosition+
    ",left="+LeftPosition+",scrollbars=yes,location=no"+
    ",directories=no,status=no,menubar=no,toolbar=no,resizable=no"
    
    pop=window.open(url,name,paramstp);
    loadpos=height/2-40
        if(pop.focus){pop.focus();} 
    return;
   } 
 } 
   LeftPosition=(screen.width)?(screen.width-width)/2:100;
  TopPosition=(screen.height)?(screen.height-height)/2:100;
  paramstp="height="+winheight+",width="+winwidth+",top="+TopPosition+
  ",left="+LeftPosition+",scrollbars=yes,location=no"+
  ",directories=no,status=no,menubar=no,toolbar=no,resizable=no"
  pop=window.open(url,name,paramstp);
 x = y = step
var z = 1

while (z < 100) {
pop.resizeBy (x, y)
z++;
}
 if(pop.focus){pop.focus();} 
}

/****************************************************************


*****************************************************************/

