﻿// ETT Web Site - Release 1.0.4.0

//    ID      Date        Release Number  Issue/CR Number         Modified By     Type
//    ----------------------------------------------------------------------------------------------
//    LL001   2008-05-05  1.0.4.0         Issue Tracker #288      Louis Li        Add CTV News Video

// LL001

//Parameters
//	url: the page url which will be showed in the popup
//	name: page name
//	windowWidth: width of popup window
//	windowHeight: height of popup window
//Comments: myleft, mytop calculate the position of popup window according to the resolution of current environment.
function popUp(url,name,windowWidth,windowHeight){
    myleft=(screen.width)?(screen.width-windowWidth)/2:100;	
    mytop=(screen.height)?(screen.height-windowHeight)/2:100;	
    properties = "width="+windowWidth+",height="+windowHeight+", top="+mytop+",left="+myleft+", status=no";    
    window.open(url,name,properties)
}
