if( goVar != "" ) 
    window.location = goVar;