function openMicrcorpTVByResolution()
{

	var iWidth;
	var iHeight;
    var url = "/mctv.aspx"; 
	var windowName = "MicrocorpTV";



	// This will deal with the Screen Resolution Width

	if( window.screen.width == 1024 )

	    iWidth = 950;

        else if( window.screen.width == 1200 )

	    iWidth = 1050;

        else

            iWidth = 1100;



	

	// This will deal with the Screen Resolution Width

	if( window.screen.height == 1024 )

	    iHeight = 500;

    else if( window.screen.height == 1200 )

	    iHeight = 780;

    else

        iHeight = 900;



	

	//gets top and left positions based on user's resolution so hint window is centered.

	iMyWidth = (window.screen.width/2) - (parseInt(iWidth)/2 + 10); //half the screen width minus half the new window width (plus 5 pixel borders).

	iMyHeight = (window.screen.height/2) - (parseInt(iHeight)/2 + 50); //half the screen height minus half the new window height (plus title and status bars).



	var win1 = window.open(url,windowName,"status,height="+iHeight+",width="+iWidth+",resizable=yes,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",scrollbars=yes,menubar=no");

	win1.focus();

}