<!--
// JavaScript Document
/* Global variables ********************************************************/

var winConfirm = null;

function confirmYesNo (szText, szParentFunctionName, w, h) {

	//var windowWidth = (confirmYesNo.arguments.count > 2) ? w : 250;
	//var windowHeight = (confirmYesNo.arguments.count > 3) ? h : 100;
	var windowWidth = 250;
	var windowHeight = 100;
	var locX = ( screen.width - windowWidth ) / 2;
	var locY = ( screen.height - windowHeight ) / 2;
	var windowFeatures = "width=" + windowWidth
		+ ",height=" + windowHeight
		+ ",screenX=" + locX
		+ ",screenY=" + locY
		+ ",left=" + locX
		+ ",top=" + locY
		+ ",resizable=no"
		+ ",scrollbars=no"
		+ ",menubar=no"
		;
	
	/* Close window first to make sure that our window has */
	/* the desired features */
	
	if (winConfirm != null && !winConfirm.closed)
		winConfirm.close();
	
	/* Open the new confirm */
	winConfirm = open( "", "winConfirm", windowFeatures );
	
	/* Write to the confirm box */
	var theHTML = '<HEAD><TITLE>Please choose...</TITLE>';
	theHTML += '<link href="v4sheet.css" rel="stylesheet" type="text/css">';
	/*
		+ '<script type="text/javascript">'
		+ '<!--'
		+ 'function P7_StyleLoader(tS) { //v1.2 by PVII'
		+ ' var tH=\'\',tDoc=\'\',tA=\'<LIN\'+\'K REL="stylesheet" HREF=\',tB=\' TYPE="text/css">\';'
		+ ' if(document.getElementsByTagName){var bb=document.getElementsByTagName("LINK");'
		+ ' if(bb) {for(var k=0;k<bb.length;k++){if(bb[k].rel.toLowerCase()=="stylesheet"){'
		+ ' var h=bb[k].href,x=h.lastIndexOf("/");if(x>0){tH=h.substring(0,x+1);}'
		+ ' bb[k].disabled=true;tDoc=tA+\'"\'+ tH + tS + \'"\' +tB;'
		+ ' document.write(tDoc);break;}}}}'
		+ '}'
		+ 'P7_StyleLoader("w3csheet.css");'
		+ '//-->'
		+ '</script>';*/
theHTML += '</HEAD><BODY BGCOLOR="#FFFFFF">'
              + '<CENTER><B>'
              + szText
              + '</B><br><br>'
			  + '<br>windowWidth: ' + windowWidth + '<br>'
			  + '<br>windowHeight: ' + windowHeight + '<br>'
			  + '<FORM NAME="buttonForm">'
              + '<INPUT TYPE="button" VALUE=" YES  "'
              + ' ONCLICK="opener.' + szParentFunctionName + '(0);self.close();">'
              + '&nbsp;'
              + '<INPUT TYPE="button" VALUE="  NO  "'
              + ' ONCLICK="opener.' + szParentFunctionName + '(1);self.close();">'
              + '</FORM></BODY>';
		winConfirm.document.writeln( theHTML );
}

function displaySidebarInfo (szTitle, aText) {
alert("fff");
	try {
		var o = MM_findObj('spExplanationTitle');
		o.innerHTML = szTitle;					// this will throw an exception if not IE
		var szOut = "";
		for (i = 0; i < aText.length; i++)
			szOut += "<p>" + aText[i] + "</p>";
		o = MM_findObj('spExplanation');
		o.innerHTML = szOut;
	} catch (e) {
		changeContent (getCell ("explanationTitle", 0, 0), szTitle);
		for (i = 0; i < aText.length; i++)
			changeContent (getCell ("explanation", i, 0), aText[i]);
	}
}


//-->