Material Script Trouble

Hello can someone tell me what is wrong with this javascript? I don't get why it I get an error.

function Update () {
    var camview = Camera.current;
    Renderer.material.SetTexture("_MainTex",camview);
}

Use a lowercase R. You want to access a specific renderer; you're not using a static method.

renderer.material.SetTexture("_MainTex",camview);

Also, that's too long. If you're setting _MainTex, make it look better:

renderer.material.mainTexture = camview;

Regardless, this isn't going to work. Camera.current is a camera, not a texture.