//*******************************************************************************************************
//Author:               Jonathan Clensy
//Date Programmed:      14/04/08
//Last Amended By:      Jonathan Clensy
//Date Last Amended:    14/04/08
//Description:          This javascript function launches a chromeless popup to display the various 
//                      explanation.aspx page which is available when a candidate applys speculatively.
//*******************************************************************************************************

function func_showExplanations()
{
    var pos="center";
    var w="550";    //Set width of popup box
    var h="550";    //Set height of popup box
    var scroll="0"; //Show vertical scroll box when required
    
    //This calculates the Top and Left positions so that the popup will always appear in the centre of the screen.
    if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}

    //Now assign all the values into the settings string
    //settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',status=1';
    settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',status=1';

    //Now open the popup.
	advtWnd=window.open("explanation.aspx","advtWndName",settings);
	advtWnd.focus();
	
}
