CRM 2011 JS: Clear Lookup using Jscript

//Code Snippet:

function SetLookupNull(lookupAttribute){

var lookupObject = Xrm.Page.getAttribute(lookupAttribute);

if (lookupObject != null)

{

Xrm.Page.getAttribute(lookupAttribute).setValue(null);

}

}