o3="Function"; 
o3_nn=1.1; 
o3_ie=2; 
o3_ecma=1;
o3_nnref="http://developer.netscape.com/docs/manuals/js/core/jsref15/function.html";
o3_ieref="http://msdn.microsoft.com/library/en-us/script56/html/js56jsobjFunction.asp";
o3_ecmaref="http://www.ecma.ch/ecma1/STAND/ECMA-262.HTM";
o3_txt="Creates a new function.";
o3_syntax_1="function functionName([argname1 [, ...[, argnameN]]]){<br>&nbsp;&nbsp;&nbsp;body<br>}";
o3_syntax_2="functionName = new Function( [argname1, [... argnameN,]] body );";
o3_parameters="<br><br>&nbsp;<b>functionName</b>: Required. The name of the newly created function<br>&nbsp;<b>argname1...argnameN</b>: Optional. A list of arguments the function accepts.<br>&nbsp;<b>body</b>: Optional. Block of script code to be executed when the function is called.";
o3_ex1_0="function myFunction(){";
o3_ex1_1=" alert('I AM ALIVE');";
o3_ex1_2="}";
o3_ex2_0="&lt;html&gt;";
o3_ex2_1="&lt;head&gt;";
o3_ex2_2="&lt;title&gt;Example page&lt;/title&gt;";
o3_ex2_3='&lt;scr'+'ipt language="JavaScript"&gt;';
o3_ex2_4=" ";
o3_ex2_5="function myMessenger(message){";
o3_ex2_6=" alert('IMPORTANT MESSAGE: '+message);";
o3_ex2_7="}";
o3_ex2_8=" ";
o3_ex2_9="&lt;/scr"+"ipt&gt;";
o3_ex2_10=" ";
o3_ex2_11='&lt;body onLoad="myMessenger(\'PAGE IS LOADED\')"&gt;';
o3_ex2_12="Bla, bla, bla";
o3_ex2_13='&lt;a href="#" onClick="myMessenger(\'YOU HIT THE LINK!\');"&gt;CLICK HERE&lt;/a&gt;';
o3_ex2_14="&lt;/body&gt;";
o3_ex2_15="&lt;/html&gt;";

o3_p0="arguments"; 
o3_p0_nn=1.1; 
o3_p0_ie=2; 
o3_p0_ecma=1;
o3_p0_nnref="http://developer.netscape.com/docs/manuals/js/core/jsref15/function.html#1193312";
o3_p0_ieref="http://msdn.microsoft.com/library/en-us/script56/html/js56jsproarguments.asp";
o3_p0_ecmaref="http://www.ecma.ch/ecma1/STAND/ECMA-262.HTM";
o3_p0_syntax="arguments[argumentNumber]"; 
o3_p0_txt="An array with the arguments passed to a function.";
o3_p0_ex1_0="function myFunction(name,age,occupation){";
o3_p0_ex1_1=" alert('The name is:'+arguments[0]+' - Same as:'+name);";
o3_p0_ex1_2=" alert('The age is:'+arguments[1]+' - Same as: '+age);";
o3_p0_ex1_3=" alert('The occupation is:'+arguments[2]+' - Same as: '+occupation);";
o3_p0_ex1_4="};";
o3_p0_ex1_5=" ";
o3_p0_ex1_6="myFunction('Henrik',35,'WebMaster');";

o3_p1="arguments.callee"; 
o3_p1_nn=1.1; 
o3_p1_ie=5.5; 
o3_p1_ecma=1;
o3_p1_nnref="http://developer.netscape.com/docs/manuals/js/core/jsref15/function.html#1196419";
o3_p1_ieref="http://msdn.microsoft.com/library/en-us/script56/html/js56jsprocallee.asp";
o3_p1_ecmaref="http://www.ecma.ch/ecma1/STAND/ECMA-262.HTM";
o3_p1_syntax="arguments.callee"; 
o3_p1_txt="The function body of the currently executing function.";
o3_p1_ex1_0="function myFunction(name,age,occupation){";
o3_p1_ex1_1=" alert(arguments.callee);";
o3_p1_ex1_2="};";
o3_p1_ex1_3=" ";
o3_p1_ex1_4="myFunction('Henrik',35,'WebMaster');";
o3_p1_ex1_5=" ";
o3_p1_ex1_6="// Would alert this:";
o3_p1_ex1_7="// ";
o3_p1_ex1_8="// function myFunction(name,age,occupation){";
o3_p1_ex1_9="// &nbsp; alert(arguments.callee);";
o3_p1_ex1_10="// }";



o3_p2="arguments.length"; 
o3_p2_nn=1.1; 
o3_p2_ie=5.5; 
o3_p2_ecma=1;
o3_p2_nnref="http://developer.netscape.com/docs/manuals/js/core/jsref15/function.html#1196484";
o3_p2_ieref="http://msdn.microsoft.com/library/en-us/script56/html/js56jsprolengtharguments.asp";
o3_p2_ecmaref="http://www.ecma.ch/ecma1/STAND/ECMA-262.HTM";
o3_p2_syntax="arguments.length"; 
o3_p2_txt="Number of arguments passed to the function.";
o3_p2_ex1_0="function myFunction(name,age,occupation){";
o3_p2_ex1_1=" alert('Hello, I am the function and I just received '+arguments.length+' arguments');";
o3_p2_ex1_2="};";
o3_p2_ex1_3=" ";
o3_p2_ex1_4="myFunction('Henrik',35,'WebMaster');";

o3_p3="caller"; 
o3_p3_nn=1.2; 
o3_p3_ie=2; 
o3_p3_ecma=1;
o3_p3_nnref="http://developer.netscape.com/docs/manuals/js/core/jsref15/function.html";
o3_p3_ieref="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/js56jsprocaller.asp";
o3_p3_ecmaref="http://www.ecma.ch/ecma1/STAND/ECMA-262.HTM";
o3_p3_syntax="functionName.caller"; 
o3_p3_txt="Reference to the function that created an object.";
o3_p3_ex1_0="function myFunction(){";
o3_p3_ex1_1="&nbsp;if (myFunction.caller == null){";
o3_p3_ex1_2="&nbsp;&nbsp;alert('I was called from the top level.')";
o3_p3_ex1_3="&nbsp;} else {";
o3_p3_ex1_4="&nbsp;&nbsp;alert('I was called by '+myFunction.caller+'.');";
o3_p3_ex1_5="&nbsp;}";
o3_p3_ex1_6="}";
o3_p3_ex1_7=" ";
o3_p3_ex1_8="function testFunction(){";
o3_p3_ex1_9="&nbsp;myFunction();";
o3_p3_ex1_10="}";
o3_p3_ex1_11=" ";
o3_p3_ex1_12="myFunction(); // Call from top level";
o3_p3_ex1_13="testFunction(); // Call from another function";

o3_p4="constructor"; 
o3_p4_nn=1.1; 
o3_p4_ie=2; 
o3_p4_ecma=1;
o3_p4_nnref="http://developer.netscape.com/docs/manuals/js/core/jsref15/function.html#1204601";
o3_p4_ieref="http://msdn.microsoft.com/library/en-us/script56/html/js56jsproconstructor.asp";
o3_p4_ecmaref="http://www.ecma.ch/ecma1/STAND/ECMA-262.HTM";
o3_p4_syntax="objectName.constructor"; 
o3_p4_txt="Reference to the function that created an object.";
o3_p4_ex1_0="function myExample() {";
o3_p4_ex1_1="alert('Hello world');";
o3_p4_ex1_2="}";
o3_p4_ex1_3=" ";
o3_p4_ex1_4="if (myExample.constructor==Function) alert('This is a Function');";
o3_p4_ex1_5="if (myExample.constructor==Date) alert('This is a Date');";
o3_p4_ex1_6="if (myExample.constructor==String) alert('This is a String');";
o3_p4_ex1_7='// Would alert "This is a Function"';
o3_p4_ex2_0='You might expect that this example would alert "Date":';
o3_p4_ex2_1=" ";
o3_p4_ex2_2="myDate = new Date();";
o3_p4_ex2_3=" alert(myDate.constructor);";
o3_p4_ex2_4=" ";
o3_p4_ex2_5="But constructor is a reference to the creating function itself";
o3_p4_ex2_6="So this example would alert something like:";
o3_p4_ex2_7="function Date() { [native code] }";

o3_p5="length"; 
o3_p5_nn=1.1; 
o3_p5_ie=2; 
o3_p5_ecma=1;
o3_p5_nnref="http://developer.netscape.com/docs/manuals/js/core/jsref15/function.html#1216661";
o3_p5_ieref="http://msdn.microsoft.com/library/en-us/script56/html/js56jsprolengthfunction.asp";
o3_p5_ecmaref="http://www.ecma.ch/ecma1/STAND/ECMA-262.HTM";
o3_p5_syntax="functionName.length"; 
o3_p5_txt="Number of arguments expected by the function.";
o3_p5_ex1_0="function myFunction(name,age,occupation){";
o3_p5_ex1_1=" alert('Hi - I am myFunction and I just received '+arguments.length+' arguments.');";
o3_p5_ex1_2="}";
o3_p5_ex1_3=" ";
o3_p5_ex1_4="alert('myFunction expects '+myFunction.length+' arguments.');";
o3_p5_ex1_5="myFunction('Henrik',35,'WebMaster');";
o3_p5_ex1_6="myFunction('Henrik',35); // On purpose send only 2 arguments.";

o3_p6="prototype"; 
o3_p6_nn=1.1; 
o3_p6_ie=2; 
o3_p6_ecma=1; 
o3_p6_nnref="http://developer.netscape.com/docs/manuals/js/core/jsref15/boolean.html#1193217";
o3_p6_ieref="http://msdn.microsoft.com/library/en-us/script56/html/js56jsproprototype.asp";
o3_p6_ecmaref="http://www.ecma.ch/ecma1/STAND/ECMA-262.HTM";
o3_p6_syntax="Function.prototype.methodName = functionName"; 
o3_p6_txt="Creates a new method for Function objects.";
o3_p6_ex1_0="function humanSpecs(){";
o3_p6_ex1_1=" return 'I am a function and I expect '+this.length+' arguments.';";
o3_p6_ex1_2="}";
o3_p6_ex1_3="Function.prototype.talk = humanSpecs;";
o3_p6_ex1_4=" ";
o3_p6_ex1_5="function myFunction(name,age,occupation){";
o3_p6_ex1_6=" alert('Hello '+name+' you are an '+age+' years old '+occupation);";
o3_p6_ex1_7="}";
o3_p6_ex1_8=" ";
o3_p6_ex1_9="function yourFunction(weight,height){";
o3_p6_ex1_10=" alert('Hello your dimensions are: W:'+weight+' H:'+height);";
o3_p6_ex1_11="}";
o3_p6_ex1_12=" ";
o3_p6_ex1_13="alert( myFunction.talk() )";
o3_p6_ex1_14="alert( yourFunction.talk() );";
o3_p6_ex1_15=" ";
o3_p6_ex1_16="// Would alert these:";
o3_p6_ex1_17="// ";
o3_p6_ex1_18="// I am a function and I expect 3 arguments.";
o3_p6_ex1_19="// I am a function and I expect 2 arguments.";

o3_m0="apply()"; 
o3_m0_nn=1.3; 
o3_m0_ie=5.5; 
o3_m0_ecma=0; 
o3_m0_nnref="http://developer.netscape.com/docs/manuals/js/core/jsref15/function.html#1194017";
o3_m0_ieref="http://msdn.microsoft.com/library/en-us/script56/html/js56jsmthApply.asp";
o3_m0_ecmaref="http://www.ecma.ch/ecma1/STAND/ECMA-262.HTM";
o3_m0_syntax="apply(thisArg[, argArray]) ";
o3_m0_txt="Applies a method of another object to the current object.";
o3_m0_ex1_0='function product(name, value){';
o3_m0_ex1_1='this.name = name;';
o3_m0_ex1_2='if(value > 1000)';
o3_m0_ex1_3='this.value = 999;';
o3_m0_ex1_4='else';
o3_m0_ex1_5='this.value = value;';
o3_m0_ex1_6='}';
o3_m0_ex1_7=' ';
o3_m0_ex1_8='function prod_dept(name, value, dept){';
o3_m0_ex1_9='this.dept = dept;';
o3_m0_ex1_10='product.apply(product, arguments);';
o3_m0_ex1_11='}';
o3_m0_ex1_12=' ';
o3_m0_ex1_13='prod_dept.prototype = new product(); ';
o3_m0_ex1_14=' ';
o3_m0_ex1_15='// since 5 is less than 100 value is set';
o3_m0_ex1_16='cheese = new prod_dept("feta", 5, "food");'; 
o3_m0_ex1_17=' ';
o3_m0_ex1_18='// since 5000 is above 1000, value will be 999';
o3_m0_ex1_19='car = new prod_dept("honda", 5000, "auto");';
o3_m0_parameters="<br><br>&nbsp;<b>thisObj</b>: Optional. The object to be used as the current object.<br><br>&nbsp;<b>argArray</b>: Optional. Array of arguments to be passed to the function.";
o3_m0_returned='None.';

o3_m1="call()"; 
o3_m1_nn=1.3; 
o3_m1_ie=5.5; 
o3_m1_ecma=0; 
o3_m1_nnref="http://developer.netscape.com/docs/manuals/js/core/jsref15/function.html#1194243";
o3_m1_ieref="http://msdn.microsoft.com/library/en-us/script56/html/js56jsmthCall.asp";
o3_m1_ecmaref="http://www.ecma.ch/ecma1/STAND/ECMA-262.HTM";
o3_m1_syntax="call(thisArg[, arg1[, arg2[, ...]]])";
o3_m1_txt="Executes method of another object on current object.";
o3_m1_ex1_0='function product(name, value){';
o3_m1_ex1_1='this.name = name;';
o3_m1_ex1_2='if(value > 1000)';
o3_m1_ex1_3='this.value = 999;';
o3_m1_ex1_4='else';
o3_m1_ex1_5='this.value = value;';
o3_m1_ex1_6='}';
o3_m1_ex1_7=' ';
o3_m1_ex1_8='function prod_dept(name, value, dept){';
o3_m1_ex1_9='this.dept = dept;';
o3_m1_ex1_10='product.call(this, name, value);';
o3_m1_ex1_11='}';
o3_m1_ex1_12=' ';
o3_m1_ex1_13='prod_dept.prototype = new product(); ';
o3_m1_ex1_14=' ';
o3_m1_ex1_15='// since 5 is less than 100 value is set';
o3_m1_ex1_16='cheese = new prod_dept("feta", 5, "food");'; 
o3_m1_ex1_17=' ';
o3_m1_ex1_18='// since 5000 is above 1000, value will be 999';
o3_m1_ex1_19='car = new prod_dept("honda", 5000, "auto");';
o3_m1_parameters="<br><br>&nbsp;<b>thisObj</b>: Optional. The object to be used as the current object.<br><br>&nbsp;<b>arg1[,arg2[,...]]</b>: Optional. List of arguments to be passed to the method.";
o3_m1_returned='None.';

o3_m2="toSource()"; 
o3_m2_nn=1.3; 
o3_m2_ie=0; 
o3_m2_ecma=0; 
o3_m2_nnref="http://developer.netscape.com/docs/manuals/js/core/jsref15/boolean.html#1193426";
o3_m2_ieref="http://msdn.microsoft.com/library/en-us/script56/html/js56jsmthtostring.asp";
o3_m2_ecmaref="http://www.ecma.ch/ecma1/STAND/ECMA-262.HTM";
o3_m2_syntax="functionName.toSource()";
o3_m2_txt="String representing the source code of the function.";
o3_m2_ex1_0="// This method is usually called internally by JavaScript and not explicitly in code.";
o3_m2_ex1_1=" ";
o3_m2_ex1_2="function myFunction(){";
o3_m2_ex1_3="alert('Hello world');";
o3_m2_ex1_4="}";
o3_m2_ex1_5=" ";
o3_m2_ex1_6="alert(myFunction.toSource());";
o3_m2_ex1_7=" "; 
o3_m2_ex1_8="// Would return the following string:";
o3_m2_ex1_9="// function myFunction() {";
o3_m2_ex1_10="// alert('Hello world');";
o3_m2_ex1_11="// }"; 
o3_m2_ex1_12=" "; 
o3_m2_ex1_13="// The above example returns an error in IE."; 
o3_m2_ex1_14="// Use <b>.toString</b> or <b>.valueOf</b> to do the exact same cross browser safe."; 

o3_m2_parameters="None.";
o3_m2_returned='String.';

o3_m3="toString()"; 
o3_m3_nn=1.1; 
o3_m3_ie=3; 
o3_m3_ecma=1; 
o3_m3_nnref="http://developer.netscape.com/docs/manuals/js/core/jsref15/boolean.html#1193269";
o3_m3_ieref="http://msdn.microsoft.com/library/en-us/script56/html/js56jsmthtostring.asp";
o3_m3_ecmaref="http://www.ecma.ch/ecma1/STAND/ECMA-262.HTM";
o3_m3_syntax="functionName.toString()";
o3_m3_txt="String representing the source code of the function.";
o3_m3_ex1_0="// This method is usually called internally by JavaScript and not explicitly in code.";
o3_m3_ex1_1=" ";
o3_m3_ex1_2="function myFunction(){";
o3_m3_ex1_3="alert('Hello world');";
o3_m3_ex1_4="}";
o3_m3_ex1_5=" ";
o3_m3_ex1_6="alert(myFunction.toString());";
o3_m3_ex1_7=" "; 
o3_m3_ex1_8="// Would return the following string:";
o3_m3_ex1_9="// function myFunction() {";
o3_m3_ex1_10="// alert('Hello world');";
o3_m3_ex1_11="// }"; 
o3_m3_parameters="None.";
o3_m3_returned='String.';

o3_m4="valueOf()"; 
o3_m4_nn=1.1; 
o3_m4_ie=3; 
o3_m4_ecma=1; 
o3_m4_nnref="http://developer.netscape.com/docs/manuals/js/core/jsref15/boolean.html#1195085";
o3_m4_ieref="http://msdn.microsoft.com/library/en-us/script56/html/js56jsmthvalueof.asp";
o3_m4_ecmaref="http://www.ecma.ch/ecma1/STAND/ECMA-262.HTM";
o3_m4_syntax='functionName.valueOf()';
o3_m4_txt="String representing the source code of the function.";
o3_m4_ex1_0="// This method is usually called internally by JavaScript and not explicitly in code.";
o3_m4_ex1_1=" ";
o3_m4_ex1_2="function myFunction(){";
o3_m4_ex1_3="alert('Hello world');";
o3_m4_ex1_4="}";
o3_m4_ex1_5=" ";
o3_m4_ex1_6="alert(myFunction.valueOf());";
o3_m4_ex1_7=" "; 
o3_m4_ex1_8="// Would return the following string:";
o3_m4_ex1_9="// function myFunction() {";
o3_m4_ex1_10="// alert('Hello world');";
o3_m4_ex1_11="// }"; 
o3_m4_parameters="None.";
o3_m4_returned="Boolean value: true or false.";



