function popup(linkObj, width, height) {
    // get info from link element
    var title = linkObj.title;
    var URL = linkObj.href;
	//get from parameters
	var width = width;
	var height = height;
    // set additional params
    var xPos = Math.floor(screen.availWidth/2)-160;
    var yPos = Math.floor(screen.availHeight/2)-120;
		
    var params = "width="+width+",height="+height+",left=" + xPos + ",top=" + yPos+",location=no, titlebar=no; toolbar:no; scrollbars=no,status=0,menubar=0,resizable=0;"

    // call popup window
    var newWin = window.open(URL, title, params);
    return false;
}

