

/*
     *  void - opens the Update Application in a child window
     *
     */
    function doOpenUpdateAppWindow(pToggle)
    {
        var screenW = 800, screenH = 480;
        var tempScreenW = 0, tempScreenH = 0;
        if (parseInt(navigator.appVersion)>3) {
            tempScreenW = screen.availWidth-40;
            tempScreenH = screen.availHeight-40;
        }
        else if (navigator.appName == "Netscape" 
            && parseInt(navigator.appVersion)==3
            && navigator.javaEnabled()
           ) 
        {
         var jToolkit = java.awt.Toolkit.getDefaultToolkit();
         var jScreenSize = jToolkit.getScreenSize();
         tempScreenW = jScreenSize.availWidth-40;
         tempScreenH = jScreenSize.availHeight-40;
        }
        if(screenW > tempScreenW){
	        screenW = tempScreenW;
        }
        if(screenH > tempScreenH){
	        screenH = tempScreenH;
        }
        var strOpt = "toolbar=yes,status=no,scrollbars=yes,location=no,menubar=no,directories=no,resizable=yes,width="+screenW+",height="+screenH+",top=20,left=20";
        
        sURL = "https://update.renesas.com/registration/" + ((pToggle=='contact_us') ? "forms/contact_us.jsp" : "");
        currUpdateAppWindow = window.open(sURL,'currUpdateAppWindow',strOpt);

		// Added by Satyam on 26th July
		// Since move method only a part of Netscape adding if condition for Move To
        if (navigator.appName == "Netscape" 
            && parseInt(navigator.appVersion)==3) {

		    currUpdateAppWindow.moveTo(20,20);
		}
        
        currUpdateAppWindow.focus();
    }

